Case study
Smart night light
An LDR on the ESP32 watches room brightness; when it gets dim enough, the relay turns fairy lights on. The dashboard can override them.
Why
We wanted fairy lights to come on by themselves at night without flipping a wall switch.
How
The ESP32 samples the LDR. Below the brightness threshold the relay turns the fairy lights on; above it, they stay off.
Manual ON/OFF from the dashboard still works.
ESP32 + LDR