Potted plant watering system. (Involves water pumps.)

I don't understand you - you don't use that array, so why is it there at all?

I have spent a lot of time writing the whole thing out long hand.

Why?
Humans are lousy at repetition, but computers are designed for the job - why do the legwork yourself?

I'm posting from a tablet, so can't compile your code, but I can see it is far too long.

If you go into the IDE, click on "File/Examples/Control" you'll see a ready-made example on arrays.