int ledPinRed = 11; // int ledPinGreen = 10; // int buttonPin1 = 9; // int buttonPin2 = 8; // int buttonState1 = 0; // variable for reading the pushbutton status int buttonState2 = 0; // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin LED_BUILTIN as an output. pinMode(ledPinGreen, OUTPUT); pinMode(ledPinRed, OUTPUT); pinMode(buttonPin1, INPUT); pinMode(buttonPin2, INPUT); } // the loop function runs over and over again forever void loop() { buttonState1 = digitalRead(buttonPin1); if(buttonState1 == HIGH) { digitalWrite(ledPinRed, HIGH); } buttonState2 = digitalRead(buttonPin2); if(buttonState2 == HIGH) { digitalWrite(ledPinGreen, HIGH); } delay(75); }