Anti freezing at the wellhead is an important guarantee for winter safety production in coal mines. Ice formation at the wellhead can affect the normal operation of production equipment in the mine, and in severe cases, may even cause major accidents such as tank jamming and mine shutdown. The ice residue that falls off after the cage and wellbore freeze may also lead to injuries and deaths of underground personnel. Anti freezing at the wellhead of a mine is an important component of coal mine safety production. The traditional wellhead anti freezing heat exchange device heats the air with steam (high-temperature hot water), and then sends the heated hot air into the mine through a fan, that is, the heating mode of heat exchange between steam (high-temperature hot water) and air. When there are problems with the heat source, circulating water pump, and control valve, the water staying in the heat exchanger cannot be discharged in time. In bad weather, it is particularly easy to freeze. Once the water that is not discharged in time in the heat exchanger freezes, the copper tube of the heat exchanger will crack. The device utilizes remote sensors, electric control valves, and electrical control to automatically drain water in a timely manner to ensure its service life.