I am building a speaker mount that i can flip out to face out of my garage. I am trying to avoid having my door close while my speakers are protruding beyond the door and thought that if i put some sort of switch that would only complete the circuit if the speakers were pushed back into the garage, that i would be able to meet my goals. Is this doable with the weird nature of the optical sensors?
