Arduino and Python program to control a thermostat