Update thermostat.php