Place this near (or at) the top of your code
#define RELAY_ON LOW
And where you want to switch a relay on, use (for relay 1)
digitalWrite(Relay1, RELAY_ON);
And where you want to switch the relay off
digitalWrite(Relay1, !RELAY_ON);
Place this near (or at) the top of your code
#define RELAY_ON LOW
And where you want to switch a relay on, use (for relay 1)
digitalWrite(Relay1, RELAY_ON);
And where you want to switch the relay off
digitalWrite(Relay1, !RELAY_ON);