updated sketch to have thermostat controller for solar thermal system