Do you have a pulldown resistor from pin 2 to GND to make sure the pin does not "float" when the button is not pressed and cause "ghost" HIGHs?
Do you have a pulldown resistor from pin 2 to GND to make sure the pin does not "float" when the button is not pressed and cause "ghost" HIGHs?