In this Arduino earthquake detector alarm we are using Accelerometer ADXL335 to detect the pre-earthquake vibrations. Whenever it detects any shakes or vibrations, it will start the buzzer.