void setup() {
pinMode(2, INPUT_PULLUP);
}
void loop() {
int state = digitalRead(2);
Serial.println(state);
delay(5000);
}
void setup() {
pinMode(2, INPUT_PULLUP);
}
void loop() {
int state = digitalRead(2);
Serial.println(state);
delay(5000);
}