How to make a latching switch with override?

I need a latching switch circuit that relies on a beam of light from a high intensity LED crossing a road. If the beam is broken momentarily, I need another LED to turn on, and stay on until a button is pressed to override it. I have tried this in Yenka for th last 4 hurs, with no luck, as my transistor keeps... show more I need a latching switch circuit that relies on a beam of light from a high intensity LED crossing a road. If the beam is broken momentarily, I need another LED to turn on, and stay on until a button is pressed to override it. I have tried this in Yenka for th last 4 hurs, with no luck, as my transistor keeps breaking. Please help!
Update: I now have the cicuit working, just without a latch.
2 answers 2