What are the optical switches you mention. I've done a lot of work with optical interrupters which are an infrared LED, and receiver placed across a gap from each other, but they require some electronics to condition them. We used to use them in ticket transports to detect very fast moving tickets. I suppose you might be using a commercially packaged version of those giving an electrical "contact closure" or circuit path.
Sage