mahesh04 said:
we are an OEM using your firmware + repetier server softwares as a bundle with our machines, and we are facing this issue as large format machines tend to false-trigger proximity sensors in operations especially when they are running for more than 100 hours..
from my experience best solution is to use a mechanical endstop combined with additional optocoupler located at controller side.
the simple trick is that you have the switch controlling the led current which is around 20mA so spikes coming from crosstalk or other external sources will not trigger the endstop.
also some poor quality mechanical endstops will live for some 100000 switch cycles and last but not least they won´t change over temperature.
i do this on my home made mill having a 2.2kW spindle mounted including frequency converter generating a lot of emc based noise but never triggered this kind of endstop.(test period 3 years)