Test it

Now its testing time. The Pi looks for the two sensor inputs: the first one is the magnetic door switch, when that opens it knows that someone is entering or leaving. The PIR sensor is used to tell what side of the door they're on - that's what determines which WAV to play.

Here's a little video of my roommate trying out both entering and leaving:
This guide was first published on Dec 20, 2012. It was last updated on Dec 20, 2012. This page (Test it) was last updated on Jul 25, 2019.