Mini Project 1. Photoresistor + Relay module. [view source] A simple ESP32 project using a photoresistor to detect light. When it gets dark, the relay is activated and an LED turns on automatically. EMA filtration with alpha = 0.2 :