Here is such a tutorial : https://learn.sparkfun.com/tutorials/pull-up-resistors/what-is-a-pull-up-resistor