[edited] hi, I have a project where I will make a wristband and it has a MPU6050 and I want it to show whether the person's movement is fast or slow. And the person's movement is fast, meaning the person drowning, it will a sms to me using a sim800l. Is that possible? What code should I use?
An MPU6050 is an accelerometer - it measures acceleration
Higher acceleration values indicate more "vigorous" movements ...
If you search for "Human Activity dataset" you will find lots of articles on detecting & analysing human movements - and some example data that you could feed into your code...
Some examples:
http://webpersonal.uma.es/de/ECASILARI/Fall_ADL_Traces/UMA_FALL_ADL_dataset.html