Implemented thermostat control with deadband.