Ideas for fridge water tank getting empty

I think there are a few options, though with drinking water you may not want to have electronics inserted inside. something like this (though I’m not sure it would be feasible with removing connectors every time you want to refill)

the HC-SR04 would probably work well, and depending on how the water tank is placed in the fridge, something like this could also be an option?