The end result.
Setup your Arduino.
See wiring diagram in references link.
View Serial Output.
Run the Code.
Upload the code to the Arduino. Open the Serial monitor. Press the button.
The output should change from ‘0’ to ‘1’.
If there is no change, make sure the button is connected to the bread board properly and all connections are secure.