Tilt project - Gyro, Tilt sensor or a Accelerometer

I am creating a project that needs to detect a change in tilt. Say its like a garbage shoot bin door. When its open, the door changed about 15 degrees. I don't need to ever know the exact angle, just when it changes and when it goes back to original. (see image)

I originally bought this tilt sensor but the ball bearing isnt sensitive enough, basically it seems like I have to tilt a full 180 for it to detect. But the simplicity of the code was right, either the switch was at LOW or HIGH (tilted or not). When it was tilted I did one function, when it was not I performed a different one.

So then I bought this Accelerometer. This might be overkill since I don't need to know exact angles, just either its not changing (stationary) or its moved open.

Lastly I came across a Gyro that tells tilt change. I admit I dont know much about this so not sure if this will work.

A tilt sensor or accelerometer will work, but a gyro probably won't, because gyros drift.

A switch type tilt sensor is the easiest to use. If the first one you tried did not work, try a different type. Much easier than using an accelerometer. These will certainly work, but it is illegal to ship mercury in many countries.

Mount the tilt sensor in the right orientation. E.g. tilt it until it switches, then fix it in that position.

Depends on what you are using it for but an optical sensor would not even need Arduino.

packytagliaferro:
I am creating a project that needs to detect a change in tilt. Say its like a garbage shoot bin door. When its open, the door changed about 15 degrees.

Door/window alarm sensors (reed switch with bar magnet) do just that.
And they are probably more garbage resistant than optical or other sensors.
Leo..