So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By rudy
#71017 pinMode(16, INPUT_PULLUP)

This does not work for pin 16. It is an exception. It does not have a pull up option, it has a pull down.

pinMode(16, INPUT) and use an external pull up resistor.

GPIO16 can be INPUT, OUTPUT, or INPUT_PULLDOWN_16