16-05-2016, 03:09
You can try just add an external pull-up, and keep the internal pull-up active, both will be in parallel. Keep in mind that a too low value raises the current through the reed switch, and can cause other problems. See the reed switch specs.
Playing with the debounce default value may help also, but what value to use? You can adjust it to allow one or two clicks per second, which maybe is more than we can expect even with a heavy rain, but I really don't know if it will be effective to prevent thunderstorm interferences on the cable.
Playing with the debounce default value may help also, but what value to use? You can adjust it to allow one or two clicks per second, which maybe is more than we can expect even with a heavy rain, but I really don't know if it will be effective to prevent thunderstorm interferences on the cable.

