MPU6050 like a simple motion sensor

Hi!

I'm a starter in the Arduino programing.
I need a very sensitive motion or vibration sensor (not optical motion sensor).
I tried the vibration sensor 801S, but it isn't enough sensitive for me.
So I would like to try out an accelerometer and gyroscope MPU6050, like a motion detector.
I downloaded the library of the mpu6050, and I tried out the sample code. It works, but I don 't know how should I it to use like a simple motion sensor.
I don't need the coordinates (w,x,y,z) from the MPU6050. I would like to use it like a simple motion sensor, that if it senses motion, an output will high on the arduino.
Could somebody help me to change the example?
Or can everyone offer to me a better, sensitive motion sensor, or better solution?
Thanks!

MPU6050_DMP6.ino (15.7 KB)

use one of those sensors?! The gyro tends to drift - avoid it.

knut_ny:
use one of those sensors?! The gyro tends to drift - avoid it.

Yes, but I think if I watch only the suddenly changes (suggesting movement) it can work well.

For example:
I read the data from the sensor. Then I read again a second (or 500 mill) later.

If the different bigger than a certain threshold, it means movingand an output will change on the arduino.
So I think the drift doesn't matter.

That may very well be correct. ..the gyro will not detect linear movement, so use one more sensor