I am a student in mechanical engineering working on a personal project for which I need to use a 3-way switch triggered by a photosensor (one sensor for the on-position, and a different one for the off). Could someone point me to some resources that would help me to understand how this is done and how the circuitry is designed?