Using a temperature and humidity sensor