Accelerometer

The circuit looks OK, you should be OK with a tilt sensor for this project.