photocell optical train detection