Using LDR sensor with ESP32 to Turn on/off LED.
Pinouts:
- PIN#1 is connected with PIN#2 of ESP32
- PIN#1 is connected with GND via 10Kohms resistor
- PIN#2 is connected with VCC of ESP32
Actual picture:
LED light is ON when flash light is used on LDR sensor and light intensity is grater than 400.