Reed Switch False Activations
Software de-glitcing should fix it, the rain catcher should produce much longer pulses than the fence chargers make. so just ignore the short pulses.

if you want to make your circuit immune to noise that's a harder task.

maybe something like this.







simulate this circuit &ndash; Schematic created using CircuitLab

or something with common-mode noise rejection,







simulate this circuit