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:
Here's a little video of my roommate trying out both entering and leaving:
Text editor powered by tinymce.