Why does my Arduino button report changes when nobody is pressing it?
TechnologyOur tabletop quiz button keeps changing between zero and one while sitting untouched. A friend suggested ordering a better switch. I copied a sketch using INPUT, but I haven't compared the breadboard wiring with the example it came from.
Arduino's documentation explains that an open switch can leave an input floating unless a pull-up or pull-down establishes its state. It also distinguishes those arrangements from INPUT_PULLUP. Arduino's pin-mode explanation
This is an Arduino Uno learning circuit, with no mains equipment or moving mechanism attached. What should I understand about the input before replacing the button or adding code that ignores changing readings?