Mh Sensor Series Flying Fish Ir Sensor Datasheet Fixed -
Your potentiometer is mis-set. Turn the blue box trimmer counter-clockwise. The Flying Fish has a digital output, not analog. The pot adjusts the threshold . If the threshold is too low, it will always read "1" (nothing detected).
Stop reading the fake datasheet and run this code instead: Mh Sensor Series Flying Fish Ir Sensor Datasheet Fixed
Decoding the MH Flying Fish IR Sensor: Why Your Datasheet is Broken (And How to Fix It) Your potentiometer is mis-set
Here are the verified specifications. Ignore any PDF that claims different voltages or pinouts without looking at the back of the board. Mh Sensor Series Flying Fish Ir Sensor Datasheet Fixed