Automated Watering Systrem

Hi, I'm working on an automated watering system for a research project. It uses a Mega2560 board, adafruit datalogging shield, Sainsmart 16 relay board, and 14 24V solenoids for water control. Right now everything seems to be working, the relay LEDs will come on, but the relay itself won't switch. Here's the code/basic wiring directions. Any ideas?

arduinomegairrigation.txt (20.5 KB)

How about a schematic?
This is the Electronics section after all.

From the text: "a 5 VDC relay driver board with 16 relays (SainSmart,..."

Are you sure this is a 5volt board. Most Sainsmart 16-relay boards I have seen are 12volt and have an onboard 5volt buck converter. Post a link to the board.
Post a diagram how you have wired this (potentially problematic) board.
Leo..