Here, when the button pressed, the 5v will be sent to pin 2. There's another way to set up a button, which would use the Arduino's internal pull up resistor. Here is ...