INPUT_PULLUP
is used for all input pins to increase reading reliability and attempt to decrease damage due to wiring mishaps. The Aduino digital pin documentation and analog input pin documentation pages have additional information, including “turning on a pullup will affect the values reported by analogRead().”
1 Like