I'm trying to build a circuit that will output a high or low voltage based on the state of 4 photodiodes. The photodiodes have a light shining on them most of the time. I would like the output voltage to change only when all of the photodiodes are blocked at the same time. So if only 1, 2, or 3 were blocked, nothing would change, but when all 4 are blocked, the output voltage would change. I built the circuit below thinking it would work, but the output changes when any of the photodiodes are blocked instead of only when all are blocked. I don't quite understand why this is. I think I might be oversimplifying things in my mind, but I was thinking of the photodiodes as switches that are closed when there is light shining on them, and open when dark. I thought one option would be to use a separate circuit for each photodiode and combine the results with an and gate, but would like some other opinions before I order more pieces I may not need. If anyone can explain why this doesn't work, or suggest something that will work, I would very much like to hear. Thanks for your help!