Changes to tempsensor.py