Let's start by attaching one of the tilt switches. Using one instead of all four at the same time makes it easier to verify that it is working and to understand how it works:
- Connect one of the tilt switches in the same way as in the following diagram—one pin connected to ground, the other to pin 0:
In reality, this will look something like this: