#define button 4
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
//delay(10); // this speeds up the simulation
int Val = digitalRead(button);
Serial.print("Value = ");
Serial.println(Val);
delay(1000);
}