use ./sensor.sh to run