moisture sensors

You should create an lcdInit() function, and another function to write that data to the LCD. Why are you reading from the analog pins again? You should be printing the values in val0, val1, val2, and val3.

You have not defined any switch pins, set them to INPUT, enabled any pullup resistors, or read any switch states.

What do the relay pins control? What do the valve pins control? Will the switch pins override the moisture sensors?

When do you plan to learn about arrays? Functions?

the valvepin are leds to show which valves are open and the pump is on...the relaypins control one pump and four valves. i ve been reading about arrays but really dont understand them or how i would use them....