The latching relay may be the simplest solution. It has 2 coils. One picks the relay, the other drops the relay. Getting from the photo detector to having the current to operate the relay coils will depend on which one you chose.
I am sure you can find something that would operate them directly.


Greg Fretwell