Using Internal Pull-Up Resistors in Arduino to Simplify Button Wiring
By skipping external resistors and using INPUT_PULLUP, you can simplify button wiring—but there’s a catch when going beyond 10 feet.

By skipping external resistors and using INPUT_PULLUP, you can simplify button wiring—but there’s a catch when going beyond 10 feet.