To control filling levels, install two of these rugged, mechanical float switches with one positioned as a minimum and the other as a maximum limit switch.
The plastic switches can then be connected to a suitable latching relay (such as our MSR- series, sold separately) for automatic level control.
Consider a tethered float switch wherever stem-mounted magnetic liquid level switches are unsuitable due to the risk of the float jamming with metallic debris or coating media.