Get value of homemade button


I have made a homemade button (with the use of the end of two wires) and want to get the value of the button.

I have seen that buttons you can buy have a pin to read the value, but as I don't fully understand the science of the digital or analog pins I don't know how to do it with my own homemade button.

I have an Arduino UNO R3


Buttons have two connectors, connected with two wires to the Arduino. Same as your button, so follow any of the tutorials.