Thermostat code controls a relay based on a thermistor.