I'm working on Arduino Kit book's Project 8: the digital hourglass. I've got the picture and the circuit diagram below.
My question is a fundamental one, and I really don't know how others figured it out. The question is: How do I correctly tie a four-pin tilt sensor to the power and to the ground? I've been through a couple of datasheets for the RBS040100 and none of them were particularly helpful in determining which pin is responsible for what. The most helpful anything has got to be is this pdf sheet where the PCB layout diagram points out an index for every pin and how the pins within the sensor are related, yet it does not explain where the power goes and where the ground is connected.
I also ran into this Arduino SE page but nobody got close to actually explaining how to use (i.e., correctly integrate) the sensor into the circuit.
I know that if you plug a capacitor in the wrong way, it may explode. By the same token I do not want to screw up the sensor or the board, but what do I know. This is the only tilt sensor I've got.
Before my board goes live, I'd like to confirm whether I have the tilt sensor connected correctly.
Any help would be appreciated. Let me know if you need anything else for further clarification. Thank you in advance.
Edit: Here's a picture of the four-pin tilt sensor: