how to connect a push button switch?
Connect a jumper wire from the 5-volt pin to one side of the pushbutton. Connect a jumper wire from pin 2 to the other side of the pushbutton. Connect one side of the 10k resistor from the ground rail on the breadboard to the other side to the pushbutton – on the same side that pin 2 connects.