Good deal! On the photoswitches, according to the Eaton data sheet, the best range-to-target is 1 to 9 inches. If the masks have a rounded surface, measure the maximum Vertical Height, then mount the photoswitch 8" - VH" above the conveyor surface. Say the Vertical Height of the masks are 5" maximum. So mount the photoswitches 8-5 = 3" above the mask height (which will be 8" above the conveyor surface). Then the photoswitch should be able to sense the leading edges, as well as the highest part of the mask. All surfaces will be within the 1"-to-9" window, with 3" of clearance above the mask.
Looking at the Eaton datasheet, I see now how it reads. If one leg of your load goes to the -24V Pin 3 Blue Wire, then the other side of that load has to wire to Pin 4, Black wire. I think that is what you had to do, and that is correct.