Trigger for a water sensor
Simple and straightforward would be using float switches. A float switch has a metal ball inside that pushes a micro switch. With regard to the inclination of float switch the contact changes to on/off. Almost every pump is equipped with such float switch for preventing dry running.