Recommended · for beginners
Arduino Tutorial 27: Understanding Pushbuttons and Pull Up and Pull Down Resistors
Why people recommend it
Repeatedly recommended to Arduino beginners struggling with buttons, for its clear explanation of wiring them, reading the pin state and using pull-up or pull-down resistors.
Watch for: Part of a long course, so earlier lessons help if lost