You should wire one lead to pin 13, the other to +5 volt not ground.
NO NO NO NO NO.
You should enable the internal pull up resistors by putting
pinMode(BUTTON1, INPUT);
digitalWrite(BUTTON1,HIGH);
in the setup()
You should wire one lead to pin 13, the other to +5 volt not ground.
NO NO NO NO NO.
You should enable the internal pull up resistors by putting
pinMode(BUTTON1, INPUT);
digitalWrite(BUTTON1,HIGH);
in the setup()