IR sensor not behaving as expected



  • Hello all,
    I am new with m5stack. I bought some controllers and sensors.
    From initial trials all behave as expected, except the IR sensor from the M5GO IoT Starter Kit.

    When connected in GPIO mode and with IR ON, the IR state is always 1.
    If IR OFF, then IR state fluctuates on state 0/1 somewhat randomly.
    If the sensor is unplugged, then the state is always 0.

    I did not manage to make the sensor react to another IR source or from putting objects in front of it (tried in dark environment too, suspecting influence of sunlight).

    Any suggestion of what I should look for to make the sensor work?
    What I am missing?

    ![alt text](0_1680790247466_uiflow ir.png