Arduino firmware for a thermostat-control robot