Water-level-controller-help

Post the code You have so far.
Have You tested simple code exercising the relay? Maybe post schematics for the relay control.