I'm starting to feel like I have made a Rube Goldberg device

Thanks PaulS! Exactly the kind of advice that I love to get. I will clean up my code with all of your suggestions. The only one that I am hesitant on is your first suggestion. I defined "On" and "Off" at the beginning of the sketch to be "HIGH" and "LOW" respectively because I unfortunately purchased two different types of relay boards. One type turns the relay on with an active high signal and the other type turns the relay on with an active low signal. I wanted to make it simple to switch between the two if need be by simply changing the #define at the beginning of the sketch rather than having to go through the entire sketch and change all the HIGH's to LOW's and LOW's to HIGH's. I guess I could use a find and replace if I needed to. Thoughts?