Update: I've got it working with IR proximity sensors. It's not 100% perfect as the overlapping door is a little bit too far away to get accurate readings and bright sunlight can affect the readings. But I think I can correct it with code modifications.
If I where to do this project again I think I would try with some coiled spring switches like: http://tinyurl.com/ountcx4
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Update: I've got it working with IR proximity sensors. It's not 100% perfect as the overlapping door is a little bit too far away to get accurate readings and bright sunlight can affect the readings. But I think I can correct it with code modifications.
If I where to do this project again I think I would try with some coiled spring switches like: http://tinyurl.com/ountcx4