int const led = 13;
int const pushBtn = 12;
void setup() {
// put your setup code here, to run once:
pinMode(led, OUTPUT);
pinMode(pushBtn, INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
bool btnValue = digitalRead(pushBtn);
Serial.println(btnValue);
if(btnValue == HIGH){
digitalWrite(led, HIGH);
}else{
digitalWrite(led, LOW);
}
}