Explanation
An LDR Sensor is used to measure the light intensity of the space surrounding it. Similar variations of these kinds of sensors are used in phones which allow manufacturers to turn off the screen when you place your phone to your ear during a call.
Light Dependent Resistor (LDR) sensors are commonly used in various applications to detect and respond to changes in light levels. Here are a few examples of LDR sensor applications: