For an Arduino project I am in need of a sensor(valve type functionality) that can achieve the following - it would open when a liter bottle or container is empty and close when it is filled up to be released at other end. The same process would repeat again and again.
The issue that I am facing is that all electronics valves cannot be placed inside water - is there an alternative for same?