Skip to main content
4 of 4
Spelling and grammar. Clarifications.
TonyM
  • 23.8k
  • 4
  • 40
  • 65

Turning a high/low signal into a proper digital signal

High school electronics student here, so sorry if this is a simple question.

I have a photo-electric sensor that I currently have hooked up to a microcontroller.

When on, the digital input it always reads high. When connected to an MCU analog input, the input changes when the sensor is triggered between 200 (low) and 2000 (high). In other words, it is a digital sensor, but its output isn't exactly digital - it is more of '0.1 or 0.9' instead of 0 or 1.

Is there some type of IC that I would be able to use to convert it to a true digital signal?