Hello,
I recently got a teensy 3.6 and I wanted to try it out with ir sensors (tsop31240). According to its datasheet the signal pin is high when there is no signal. When I connect it and do digitalRead() it says 0, but then I do analogRead() and it is around 950. As far as I understand that should be digitalRead() = 1? How can I correct it, can I move the HIGH -LOW threshold?
TSOP31240 datasheet -> https://www.vishay.com/docs/82492/tsop312.pdf
I recently got a teensy 3.6 and I wanted to try it out with ir sensors (tsop31240). According to its datasheet the signal pin is high when there is no signal. When I connect it and do digitalRead() it says 0, but then I do analogRead() and it is around 950. As far as I understand that should be digitalRead() = 1? How can I correct it, can I move the HIGH -LOW threshold?
TSOP31240 datasheet -> https://www.vishay.com/docs/82492/tsop312.pdf