Question: how to connect push button to arduino nano?
Answer: 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. Plug the Arduino board into your computer with a USB cable. Open the Arduino IDE.