I have a normally closed contact switch between PIN16 and PIN17 (PIN17 is 3.3V, and PIN16 is set as input). When the switch is open, PIN16 still reads high instead of low.
What could be causing this? Is it related to pull-up/down resistors or GPIO configuration?