Using the temperature sensor