Basic tutorial of how to setup a Tilt sensor with the Raspberry Pi.
RPI 3 - https://amzn.to/2VA9pQY
4 Amp Power Adapter - https://amzn.to/2CTptWu
16GB micro SD - https://amzn.to/2SFMwd3
120 pcs jumper cable: https://ebay.to/2VAb9cY
Tilt Sensor: https://amzn.to/2FHIGw4