The tank (in fact the liquid) must be connected to earth, otherwise the detection loop must be in low voltage, safe low current.