I'm currently doing research work on Automatic water dispenser, I proposed to design and implement the system that will control a solenoid valve, operated by ultrasonic sensor and display the water level as well. How can I have a program that will perform the two tasks together; controlling the valve and displaying the water level?