Hello !
I have a similar issue but with more unstability: depending on some external factor I can’t figure out, the IR distance interruptor triggers for ever or works fine.
I mean: my circuit is a duino nano with some devices attached and the IR DI1.2. Sometimes when I power on the circuit, everything is fine. IRDI works as expected, detecting when my hand pass in front of it.
But a major amount of time, when I power it on, it will stay “on” with the led turned on, and won’t changed its state whatever is in front of it (generally “nothing”).
I supposed it was a cable issue but changing the cable did not do anything. I also changed the board, the MCU, the IRDI… nothing helps. Either I did something wrong, either the board has some settings I can’t understand. The last option is that all my boards are defective, but that is improbable.