What Mr. Lynn suggested is the ideal solution. However, would it be possible to add a level float with a switch to your tank that can open the circuit to the valve. Thus when the level is reached, the flow is automatically stopped regardless of the state of the program or digital output.
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~