An improved heater and method of controlling the same is provided. The
water heater has the combination of a tank for holding water, a heater
for heating the water, a controller having logic to regulate the heater,
and first and second sensors. Each of the sensors detects the water
temperature at different areas within the water heater. The sensors also
provide the controller with signals corresponding to the detected water
temperature. In response to these signals, the controller regulates the
heater when at least one of the signals of the first and second sensors
satisfies at least one predetermined state condition.