I had a similar problem with Estops in particular. Slightly leaky circuits, long wires in particular, can trigger a pin. All my estops and limits feed into relays, which short the PC pins via a short length of printer cable. The relays run off my 9v control circuit that also powers the hall effect home switches. i used to suffer all the time from false Estops, now life is easy with relayed signal inputs. Why, i liked it so much i bought the company*
[/victor kyam]
* more relays, anyway