The utility model discloses a water level sensor used in a hyperbaric environment. The water level sensor used in the hyperbaric environment comprises a plastic shell used for fixing the water level sensor, a metal barrel matched with a screw used for fixing the water level sensor is inlaid on the plastic shell, and two loops of inverted cone protrusions are arranged on an induct electrode stem used for inducting water level on the water level sensor. The metal barrel is put into a mould cavity before injection molding of the plastic shell, and the metal barrel and the plastic shell are integrated to be a whole through injection molding. An insert on a metal block increases joint strength of a thread, and fixed effect of the water level sensor is improved. In electrode machining, the two loops of inverted cone protrusions are added on the smooth electrode stem. In the process of plastic wrapping the electrode, the two loops of inverted cone protrusions added on the smooth electrode stem can increase stability of the electrode in a plastic part, and ensure that leak under pressure effect is avoided.