script to turn on light when motion is detected