I have a pressure switch that puts out 0 to 5 VDC. I need to convert this signal to a square wave but I'm not sure how to go about doing it. Do I have to convert it to AC then to a square wave? or can i go from DC to square wave? I recently developed a interest in electronics so my knowledge of the subject is limited. Any help would be great.