The LDR (Light Dependent Resistor), also called a photoresistor or light-sensitive resistor, is an electronic component that changes resistance based on light intensity. In bright light, its resistance becomes very low, while in darkness its resistance becomes much higher.
This makes the LDR perfect for detecting light levels in automatic street lights, night lamps, solar trackers, brightness sensors, and various Arduino and ESP32 projects.