Sounds perfect. I can't figure out why the LED for Pin 53 is not ON when the magnet is present (input LOW) and OFF when the magnet is not present (input HIGH). ![]()
To enable the internal pullup, use pinMode(pin, INPUT_PULLUP); instead of pinMode(pin, INPUT); The 10k pull-ups you have are fine and you can use both if you like.