Arduino based thermostat