Main loop is now working for temperature.