First operational version of Sensor script