Circuit design · Inputs: buttons, pull-ups, noise

Cables, clamps and a series resistor

An input on a cable will one day meet the wrong voltage, and one resistor decides whether the pin survives it.