scripts for reading and sending sensor data