void setup() {
Serial.begin(9600);
pinMode(3, OUTPUT);
pinMode(4, INPUT_PULLUP);
pinMode(2, INPUT_PULLUP);
}
void loop() {
int a= digitalRead(4);
if(a==0){
digitalWrite(3, HIGH);
Serial.println("PUSH BOTTON 1 is on and LED is on.");
}
int b= digitalRead(2);
if (b==0){
digitalWrite(3, LOW);
Serial.println("PUSH BOTTON 2 is on and LED is off.");
}
}