int pushButton = 12;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(pushButton, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int buttonState = digitalRead(pushButton);
if (buttonState == HIGH){
Serial.print("Pushbutton is pressed, value is : ");
Serial.println(buttonState);
}
delay(1);
}