ES-10ESP32BeginnerPremium
ESP32 Night Light with LDR
Night light where the LED automatically turns on in the dark and off in the light. The D0 (digital out) pin of the LDR Sensor Module is used - the dark threshold is set with the small potentiometer on the module, the module itself generates the HIGH/LOW output. ESP32 just reads this signal with digitalRead(), the code is very simple.
4.7(18)
30 completed
A night light that turns on by itself when it gets dark and switches off when morning comes. A light sensor module tells whether the room is dark or bright; the ESP32 turns the LED on in the dark and off when light returns. You see on a small scale how streetlights switch on by themselves in the evening.
Source Code
This project also comes with blocks. Like the code, they unlock with Premium. What is block coding?
Premium Content
The source code, block version and FAQ of this project are open to Premium members.
- All Project Code
- Block version
- Frequently Asked Questions
