Two TemperatureSensor bugs fixed