Proximity Sensor Light Always On

When using the proximity sensor I followed the steps in module 2 but when the sensor pins are put in the respective slots in the Bolt, (GND,VCC,4) the red light of the sensor is always on and digitalRead gives value = 0. The red led switches on as soon as the sensor is attached to Bolt.

1 Like

Hi, there is a small screw on the potentiometer, please turn the screw till the red led goes off, make sure your hand does not obstruct the sensor during this process.


Yup, it’s working properly now.
Thank you.