Use what coffeemakermanufacturers do: use a float switch or a floating magnet and a magnet switch / sensor. If the water level drops below a certain level, the switch closes (or opens, depending on how you mount things up). You could also use a pressure switch / sensor, but given the application that might be a bit more tricky (involves drilling holes etc.), and more expensive.
Pieter