const int relayPin = 5;
const int relayPin1 = 10;
const int buttonPin = 6;
const int buttonPin1 = 11;
int buttonState = 0;
void setup() {
pinMode(5, OUTPUT);
pinMode(10, OUTPUT);
pinMode(6, INPUT);
pinMode(11, INPUT);
}
void loop() {
buttonState = digitalRead(buttonPin);
if(buttonState == HIGH) {
digitalWrite(5, HIGH);
} else {
digitalWrite(5, LOW);
}
buttonState = digitalRead(buttonPin);
if(buttonState == HIGH) {
digitalWrite(10, HIGH);
} else {
digitalWrite(10, LOW);
}
}