Plan
Board
Made with Fritzing
Code
int pinButton = 9;
void setup() {
Serial.begin(9600);
pinMode(pinButton, INPUT);
}
void loop() {
int buttonState = digitalRead(pinButton);
Serial.println(buttonState);
delay(10);
}
Download
Fritzing: button.fzz