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