One possible solution is a float sensor to detect the water level in whatever you’re trying ... The controller is powered by a Arduino Nano and uses a ACS712 current sensor to take phase ...