Tilt Switch and Transistor without Microcontroller

Thank you jremington, this is helpful.

Also thank you DanV. I ended up just using the tilt switch without a transistor because I put the project together before I saw the last response. So far it is working well.