temporary script used to poll the temperature sensor