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

First this is to get rid of these things. You begin the serial in setup() and that is enough for ever for your program.
Paul