This is a sealed optical triggered switch. I am in the process of making a set of these for my newly converted x2 mini-mill. each has 2 switches inside 1 acts as a home/limit the other is the far limit.
http://industrialhobbies.com/howto/p...limits_pt1.htm