Water-level-controller-help

I have relay on pin 13, low level 2 and high level is 3. Water starts going in tank but i dont know how to code it to stop. All automatic