help i want to use a MPU6050 as a motion sensor

I need to detect motion with the MPU6050 and turn on an alarm I already made a program but is too sensitive i don't know how to make it less sensitive :confused: i need help with that

detector_de_movimiento.ino (2.29 KB)

You should consider increasing the threshold for motion detection.

ivangaer:
I need to detect motion with the MPU6050 and turn on an alarm I already made a program but is too sensitive i don't know how to make it less sensitive :confused: i need help with that

Lets see your program