readjusting the sensor
script for motion detector