Working of Motion Sensor for light dimming

Working of Motion Sensor for light dimming