An LDR sensor is a device used to detect the intensity of light in its environment. The resistance of the LDR is inversely proportional to the amount of light falling on it; in brighter light, the resistance drops, and in darkness, the resistance increases.