Update thermostat.cpp