Another approach is to use the guts from a laser mouse. No physical contact required. It even works with transparent filament. That also provides an option to plug it into Touch Controller's USB port rather than using the motion controller, which means it is easily relocatable to the top of the machine where the camera USB port already exists. Output for multiple detectors can simply be combined and go through the same USB port as well.