script to turn off lights when there is no motion