Electronic Brick - Tilt Sensor
This brick contains a simple tilt switch in a standard pull-up resistor configuration. The 3 pins are GROUND, Vcc (5VDC), and SIGNAL. The SIGNAL is connected to any Arduino digital input. if the SIGNAL is LOW then the switch is tilted. If the SIGNAL is HIGH then the switch is level.