// Push Button with LED
const int pushbutton = 14;
const int led = 16;
void setup() {
Serial.begin(115200);
pinMode(pushbutton, INPUT);
pinMode(led, OUTPUT);
}
void loop(){
int button = digitalRead(14);
if (button==1){
digitalWrite(led, HIGH);
Serial.println("SWITCH_ON ");
}
if (button==0){
digitalWrite(led, LOW);
Serial.println("SWITCH_OFF ");
}
delay(10);
}