Koushik's Digilab - Learn how to control the toggle state of an LED using LDR ( light dependent resistance) and Esp32 microcontroller. The maximum light intensity value captured is 4095 ( bright daylight luminescence) versus around 100 for darkness. You can use this concept for smart night lamps, automatic garage lamp turn-on during darkness, etc.
Detailed component list, circuit schematic diagram, Arduino sketch code and working images can be found in below URL.
https://sites.google.com/view/koushik...