added motion sensor script