A motion sensor is devised to detect any movement using infrared waves (which the object gives off). If any motion is identified nearby its coverage area, it will automatically turn on the lights.