Serial Monitor Stops Printing Data After Some Time: Using Arduino to Control Solenoid Valves

Okey.

Your code is likely good so I focus on the hardware.
I would like You to post real schematics, not any children's Fritzings. Power source, voltage, pin names etc....
A photo of the setup might tell something.