void setup() { Serial.begin(9600); pinMode(11, INPUT_PULLUP); } void loop() { Serial.println(digitalRead(11)); }