Auto Refilling Water Tank with Solenoid Valve and Ultrasonic Sensor

Hi @anon11537946

welcome to the arduino-forum.
You should re-edit your first posting using this method.
Scroll down to the section RE-editing a posting

If you have re-edited your posting that the code is shown as a code-section
I will answer your questions
best regards Stefan