int inputPin = 12; // Input an Pin12
int buttonState = 0; // Zustand des Buttons
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Check the State of the Button");
pinMode(inputPin, INPUT);
}
void loop() {
// lies den Zustand des Buttons aus
buttonState = digitalRead(inputPin);
Serial.println(buttonState);
delay(100); // 10 mal pro Sekunde
}