Code to monitor a solar water heater.