Add thermostat.c