The MPU-6050 is a common 6-axis accelerometer + gyroscopic sensor for Arduino – you can read more about it here on the Arduino playground. In this project by Bilal from microcontrollerslab that uses just a few components to build a real-time earthquake detector – mind you the default sensitivity means the buzzer might be going off quite frequently (see the video below for an example).
Earthquake Detector using Arduino and MPU6050 sensor: Earthquake detector is a device that detects earthquake shocks. According to research, approximately 800,000 earthquakes occurs in a year which kills so many lives and destroys buildings. Our project is a small effort to overcome the loss which occurs due to the earthquake. This detector can detect the minor shocks and alarm you to evacuate to a safe place. The most important component of this detector is MPU 6050 module which we will talk later. Arduino is the brain of this detector, LCDis used to display message and Led and buzzer is used as indicators.