Arduino code for the thermostat