I use cheap optical switches for my PRINTnc, and this is the way I found to use them. I also included fusion360 files if you want to modify…
Simply use M3 bolts/nuts and 1 spring for each sensor as shown in pictures and video.
ONLY ONE RULE: LEVER MUST BE BLACK