mems inclinometer sensor is a good choice
I needed a smaller tilt sensor for an industrial monitoring project and decided to try this model. The mems inclinometer sensor responds quickly and the readings match the expected changes in angle. The housing feels sturdy, and the IP67 protection is useful for outdoor conditions. It took a little calibration work, but overall it does the job.