Passing dropdown values to pump and solenoid using ultrasonic

I want to pass water level in the form of dropdown to pump,filter and solenoid using ultrasonic. Then after reaching particular input water level, pump and filter will gets automatically turn off.

What do you mean by

Please be a little more detailed. What have you tried so far? Where are you having issues?