To start building the project, here we first create a database in google firebase from which data can be easily fetched both by our Nodemcu(ESP8266)to which the ultrasonic is connected and also by our mobile application. The ultrasonic sensor is basically measuring the level of the water in the pump and giving sensor output value to the Nodemcu. The Arduino is there to provide 5V supply to the ultrasonic.

The app built in MIT-App inventor shows the level of the water in the pump. It also has buttons to turn on and off the motors.
Mobile Application

Video