turns on light when motion is detected