Stay off till some point. Answered....thanks guys

ash901226:
(return digital Value)
if (WaterNow==SetHighPoint)then shut valve;
if (WaterNow==SetLowPoint)then open valve;

That might work I'll have to try it thanks