Check if bucket has water left
Immersion sensors are useful if you need precise sensing of the amount of water in the container, but suffer from corrosion issues due to both electrolytic removal of the probe material as well as oxidization of same.

If only a rough sense of how much water is required then a float switch is a better solution since the electronics can be made water-tight, thereby reducing corrosion to negligible levels.