This is the sort of protection you need to all logic inputs fed from (long) external cables:
Adding small ceramic to ground will help quell RF as already mentioned - this goes after the resistor.
This is the sort of protection you need to all logic inputs fed from (long) external cables:
Adding small ceramic to ground will help quell RF as already mentioned - this goes after the resistor.