@shinshin8 said in M5Stack Reflective IR Sensor Always Reads 0:

Board: LilyGO T-Display (ESP32-D0WDQ6-V3)

What do you mean 'Board: LilyGO T-Display (ESP32-D0WDQ6-V3)'
What version of Arduino IDE are you using?
Are you using this example:
https://github.com/m5stack/M5Unit-ReflectiveIR/blob/main/examples/detect.ino

Later edit:
Is the IR LED turned on?
You can use a phone camera to observe near IR.
Have you tried adjusting the sensitivity trim pot full scale, CW, CCW?
Your hand may not reflect enough IR.
The output is active low, so you should see 0Vdc when a reflective object is in the path. ADC 0Vdc as well.
Screenshot 2025-02-10 at 3.45.54 PM.png