Thanks for your tip, I've designed a small shield that can be placed over the optical sensor, that allows in the endstop flag, and at the same time block all outside light.
Let's hope this is sufficient :) I never knew that other light sources could influence the continuity of these sensors.
Let's hope this is sufficient :) I never knew that other light sources could influence the continuity of these sensors.