I had several goals for this assignment. One, to make use of the OpenCV library to analyze my previous assignment using blobs; two, to figure out how to play different audio clips, and switch between; and three, to use the Firmata firmware on the Arduino, so I could control it directly in Processing.
Moving away from my previous setup, I put together a simple door-like switch, using tin foil, which in turn affected the state of a Processsing program. Depending on the state, I would display my original frame-differencing image, or a threshold-modified image with blobs displayed.

Furthermore, it played audio based on what position the door was in.

Eventually, I’d like the door to actually be motorized, but I need to be able to detect if someone has manually closed it or not anyway, hence this setup. One of the positions indicates an initial state, from which the player can know they need to somehow open the door. Once successful, the audio will change, letting the player know that they can pass through the newly-opened door.