Hello and I want to thank you in advance for your help. I am new to Arduino programming, so I have limited knowledge. I created a program that is supposed to close certain (or all) relays dependent upon the serial command it receives. It appears to work; however, the last relay does not seem to switch. I also have a serial read out that I can see so I can troubleshoot any issues and I am getting the expected results via the serial terminal; however, the relay isn’t switching. I have verified the correct pins for all the relays and it appears to be correct. Any help you can give to help me fix this issue would be greatly appreciated.
The code is attached for reference.
LabViewRelayTest.ino (1.91 KB)