//Alzubair Alshehhi Fab 2018 int noPin = 8;//Normally Open pin int buttonState = 0; void setup() { // put your setup code here, to run once: pinMode(noPin,INPUT_PULLUP); Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: buttonState = digitalRead(noPin); delay(500); if(buttonState > 0){//if button is pressed Serial.println("ButtonState = Pressed"); }else {//should work when button is not clicked Serial.println("ButtonState = Open"); } //Keep in mind that HIGH and LOW maybe Switched, if so change the > sign to < }