sensor script