A pan warmer and controller for the pan warmer allows a user to preset operating conditions of the pan warmer using a digital controller, and to lock out changes to the operation of the pan warmer unless a code has been entered. The pan warmer monitors water level and temperature, and automatically adjusts water levels and water temperature.