A water-protection heater with a controller is composed of a controller, a tube body and a cover body combined with one end of the tube body. The controller includes a control circuit, a relay or bidirectional controllable One of the silicon switching elements (TRIAC), the control circuit has a control unit (MCU or comparator), the tube contains a water protection sensor, a heating element, the water protection sensor is electrically connected to the control unit or Either the relay or the triac (TRIAC) is directly electrically connected to the control unit. Therefore, it can detect whether it is separated from the water through the water protection sensor, and control whether the heating element is heated or not, which can ensure that the power is quickly cut off when leaving the water, which can save energy and avoid the situation of excessive heating temperature and empty burning away from the water surface.一種設有控制器之離水保護加溫器,設有一控制器、一管體及一結合於該管體一端之蓋體所組成,該控制器內包含設有一控制電路、一繼電器或雙向可控矽開關元件(TRIAC)其中任一者,該控制電路具有一控制單元(MCU或比較器),該管體內包含設有一離水保護傳感器、一發熱元件,該離水保護傳感器電性連接該控制單元或者與該控制單元直接電性連接該繼電器或雙向可控矽開關元件(TRIAC)其中任一者。藉此透過離水保護傳感器感知是否離水,控制發熱元件加熱與否,可以確保離開水時快速斷電,達到節省電能及避免加熱溫度過高、離開水面空燒之情形。