Sensor lights work by detecting heatwaves from a moving object, triggering a light which stays on for a set time limit. This means that the light turns on whenever motion is detected. It'll turn off after the object – either animal or person – moves away.