Arduino Nano-Based Landslide Detection System with GSM Alerts – Smart Disaster Monitoring Project

 


The Arduino Nano Landslide Detection System is a smart environmental safety solution designed to detect early warning signs of landslides and send instant SMS alerts using a GSM module. Built around the Arduino Nano, this system combines soil moisture monitoring, vibration sensing, tilt detection, and GSM communication for real-time disaster alerts.

This project is ideal for:

  • Hilly and landslide-prone regions

  • Highway & railway slope monitoring

  • Mining areas

  • Smart village safety systems

  • Construction site soil stability monitoring


 How the System Works

  1. Soil Moisture Sensor monitors water saturation levels.

  2. Vibration Sensor (SW-420) detects abnormal ground movement.

  3. Tilt/Accelerometer Sensor (ADXL345) measures slope angle changes.

  4. The Arduino Nano continuously analyzes sensor data.

  5. If values exceed safe thresholds:

    • Buzzer and red LED activate.

    • GSM module sends an emergency SMS alert.

  6. Alerts are sent using either SIM800L or SIM900.


 Key Components

  • Arduino Nano

  • Soil Moisture Sensor

  • Vibration Sensor (SW-420)

  • ADXL345

  • GSM Module (SIM800L / SIM900)

  • 5V / 12V Regulated Power Supply

  • Buzzer & Status LEDs

  • Connecting wires & breadboard


 Basic Circuit Connections

 Soil Moisture Sensor

Sensor PinArduino Nano
VCC5V
GNDGND
AOA0

 Vibration Sensor (SW-420)

Sensor PinArduino Nano
VCC5V
GNDGND
DOD2

 ADXL345 (I2C Mode)

ADXL345Arduino Nano
VCC3.3V
GNDGND
SDAA4
SCLA5

 GSM Module (SIM800L / SIM900)

GSM PinArduino Nano
TXD7
RXD8
GNDGND
VCCExternal regulated supply

 Important:

  • SIM800L requires stable 4V power supply (2A peak current).

  • Always use a separate regulated power source.

  • Connect all grounds together (common ground).


 Features & Benefits

✔ Early landslide detection
✔ Multi-sensor monitoring system
✔ Real-time SMS alerts
✔ Works without internet
✔ Low-cost disaster monitoring
✔ Expandable with IoT cloud platforms


Applications

  • Landslide-prone hill stations

  • Road & railway slope monitoring

  • Mining safety systems

  • Smart disaster alert systems

  • Flood & soil instability detection


 Why Use GSM Alerts?

Using GSM modules like SIM800L or SIM900 offers:

  • Instant SMS notifications

  • No internet dependency

  • Wide-area cellular coverage

  • Reliable remote communication

  • Ideal for rural & mountainous regions


Learning Outcomes

  • Multi-sensor integration

  • I2C communication with accelerometer

  • GSM AT command handling

  • Disaster monitoring system design

  • Real-world safety automation


Code:
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_ADXL345_U.h>
#include <SoftwareSerial.h>

// Pin definitions
#define SOIL_SENSOR_PIN A0
#define VIBRATION_SENSOR_PIN 2
#define BUZZER_PIN 3
#define GREEN_LED 4
#define YELLOW_LED 5
#define RED_LED 6

// Threshold values
#define MOISTURE_THRESHOLD 500  // Soil moisture threshold
#define VIBRATION_THRESHOLD 100 // Vibration sensor threshold
#define TILT_THRESHOLD 15.0     // Tilt threshold (degrees)

// Initialize accelerometer
Adafruit_ADXL345_Unified accel = Adafruit_ADXL345_Unified(12345);

// GSM module connected to pins D7 (TX) and D8 (RX)
SoftwareSerial gsm(7, 8);

void setup() {
  // Pin Modes
  pinMode(SOIL_SENSOR_PIN, INPUT);
  pinMode(VIBRATION_SENSOR_PIN, INPUT);
  pinMode(BUZZER_PIN, OUTPUT);
  pinMode(GREEN_LED, OUTPUT);
  pinMode(YELLOW_LED, OUTPUT);
  pinMode(RED_LED, OUTPUT);

  // Initialize Serial and GSM
  Serial.begin(9600);
  gsm.begin(9600);

  // Initialize Accelerometer
  if (!accel.begin()) {
    Serial.println("No ADXL345 detected, check wiring.");
    while (1);
  }
  accel.setRange(ADXL345_RANGE_16_G); // Set range for the accelerometer
}

void loop() {
  int moistureLevel = analogRead(SOIL_SENSOR_PIN);
  int vibration = digitalRead(VIBRATION_SENSOR_PIN);

  sensors_event_t event;
  accel.getEvent(&event);
  float tilt = atan2(event.acceleration.y, event.acceleration.x) * 180 / PI;

  // Print sensor readings
  Serial.print("Soil Moisture: ");
  Serial.println(moistureLevel);
  Serial.print("Vibration: ");
  Serial.println(vibration);
  Serial.print("Tilt: ");
  Serial.println(tilt);

  // Landslide detection logic
  if (moistureLevel > MOISTURE_THRESHOLD || vibration > VIBRATION_THRESHOLD || abs(tilt) > TILT_THRESHOLD) {
    // Trigger alert
    digitalWrite(BUZZER_PIN, HIGH);
    digitalWrite(RED_LED, HIGH);
    digitalWrite(YELLOW_LED, LOW);
    digitalWrite(GREEN_LED, LOW);
    sendSMS("Warning: Possible landslide detected!");
    delay(2000);
  } else if (moistureLevel > MOISTURE_THRESHOLD || abs(tilt) > (TILT_THRESHOLD / 2)) {
    // Moderate alert
    digitalWrite(BUZZER_PIN, LOW);
    digitalWrite(RED_LED, LOW);
    digitalWrite(YELLOW_LED, HIGH);
    digitalWrite(GREEN_LED, LOW);
  } else {
    // Normal status
    digitalWrite(BUZZER_PIN, LOW);
    digitalWrite(RED_LED, LOW);
    digitalWrite(YELLOW_LED, LOW);
    digitalWrite(GREEN_LED, HIGH);
  }

  delay(1000); // Delay to avoid rapid triggering
}

// Function to send SMS alerts
void sendSMS(String message) {
  gsm.println("AT+CMGF=1");  // Set SMS mode to text
  delay(1000);
  gsm.println("AT+CMGS=\"+91xxxxxxxxxx\"");  // Replace with the recipient's phone number
  delay(1000);
  gsm.println(message);
  delay(100);
  gsm.println((char)26);  // ASCII code of CTRL+Z to send the message
  delay(1000);
}

 

IOT & SMART SYSTEM PROJECTS

  1. IoT Weather Monitoring System (NodeMCU ESP8266 + DHT11 + Rain Sensor)
  2. ESP8266 NodeMCU Smart Health & Environment Monitoring System with Pulse, Temperature and Motion Sensors
  3. ESP32 Wi-Fi Weight Sensor with HX711
  4. Smart RFID Access Control System Using ESP32 Dev Board and UHF RFID Reader Module
  5. Smart IoT Motor Control System Using ESP32 Dev Board and L298N Motor Driver Module
  6. Smart Waste Management System Using Arduino Nano, Ultrasonic Sensor & GSM Module – Solar Powered IoT Solution
  7. Raspberry Pi Zero W and GSM SIM900 Based Ultrasonic Distance Measurement System
  8. Arduino UNO Smart Surveillance System with ESP8266 WiFi, PIR Motion Sensor & Camera Module
  9. Arduino UNO Environmental Monitoring System with OLED & 16x2 I2C LCD Display
  10. Arduino UNO-Based Smart Home Automation System with Flame and IR Sensors 
  11. Arduino Nano-Based Landslide Detection System with GSM Alerts – Smart Disaster Monitoring Project
  12. Arduino Nano Rain-Sensing Stepper Motor System
  13. Arduino Based Automatic Tire Inflator Using Pressure Sensor, Relay Module and LCD Display
  14. Arduino-Based Automatic Cooker Using Servo Motors, DC Stirrer Motor, Temperature Sensor and Relay-Controlled Heater
  15. Arduino Sketch for Plastic Bottle and Can Reverse Vending Machine

 TRAFFIC & SMART CITY PROJECTS
  1. RFID-Based Smart Traffic Control System (Arduino Mega)
  2. Arduino UNO Traffic Light Control System – Smart LED Signal Project
  3.  Arduino UNO Controlled Traffic Light System with Joystick Interface

ROBOTICS PROJECTS
  1. Arduino UNO Smart Obstacle Avoiding Robot (Ultrasonic + IR + GSM)
  2. Arduino-Powered Autonomous Obstacle Avoidance Robot with Servo Control
  3. Arduino Nano Bluetooth Controlled Line Follower Robot Using L298N Motor Driver
  4. Arduino UNO Bluetooth Controlled 4WD Robot Car Using L298N Motor Driver
  5. Arduino UNO Multi-Sensor Obstacle Avoidance & Bluetooth Controlled Robot Car Using L298N
  6. Raspberry Pi Motor Control Robot (L298N + Li-ion)
  7. RC Car Simulation with L298N Motor Driver and Joystick Control using Arduino (CirkitDesign Simulation)
  8. Raspberry Pi Robotic Arm Control System with Camera Module and Motor Driver – Smart Automation & Vision-Based Robotics Project
  9. ESP32-Based 4WD Robot Car Using Dual L298N Motor Drivers – Circuit Diagram and IoT Control Project

LORA & WIRELESS COMMUNICATION PROJECTS
  1. Arduino LoRa Communication Project Using Adafruit RFM95W LoRa RadioArduino Nano with RFM95 SX1276 LoRa
  2. Arduino Nano with RFM95 LoRa SX1276 Module – Long Range Wireless Communication Project
  3. Arduino Nano Digital Clock Using DS3231 RTC and TM1637 4-Digit Display – Circuit Diagram and Project Guide

 LED, LIGHTING & DISPLAY PROJECTS
  1. Arduino UNO Controlled NeoPixel Ring Light Show
  2. Wi-Fi Controlled NeoPixel Ring (ESP8266)
  3. Chained NeoPixel Rings with Arduino – Addressable RGB LED Control Project
  4. Arduino Nano-Controlled Lighting System with Gesture and Sound Interaction
  5. Raspberry Pi GPIO Multi-LED Control System – Beginner-Friendly Embedded Electronics Project
  6. 4 Channel Relay Module with Arduino UNO

 SENSOR & DETECTION PROJECTS
  1. Arduino UNO Color Sensor + Proximity System (TCS3200 + Inductive)
  2. Arduino Color Detection Project Using Adafruit TCS34725 RGB Color Sensor
  3. Arduino Gas Leakage Detection and Safety Alert System Using MQ-2 Gas Sensor
  4. MQ-135 Air Quality Detector Using Arduino | Cirkit Designer Simulation Project
  5. Pulse Sensor Using Arduino – Complete Guide with Simulation 
  6. HX711 Load Sensor Demo Using Arduino | Digital Weight Measurement Project
  7. Track Time with DS1307 RTC and Display on Arduino Uno with 16x2 LCD | Cirkit Designer Project
  8. Parking Sensor Simulator using Arduino Uno and HC-SR04 Ultrasonic Sensor

 FUN & INTERACTIVE PROJECTS
  1. Pong Game with Arduino UNO and OLED Display – Project Explanation
  2.   Arduino UNO Bluetooth-Controlled Servo Motor System
  3. Arduino UNO-Based Interactive Touch and Distance Sensing System with LED Indicators and Servo Control

 INDUSTRIAL / AUTOMATION PROJECTS
  1. Arduino UNO Smart Waste Sorting System Using Ultrasonic Sensor, Moisture Sensor, Servo, Stepper Motor and LCD
  2. Arduino-Based Smart Waste Segregation System Using Metal, Plastic and Moisture Sensors with Stepper and Servo Control
  3. ESP32-Based Digital Weighing Scale Using 50kg Load Cell, HX711 Module and 16x2 LCD Display
  4. Arduino-Based Smart Toll Gate Automation System with RFID, GSM, Ultrasonic Sensor and LCD Display

  5. Arduino-Based Automatic Pill Dispenser Machine with LCD Display, Servo Motor and Buzzer Reminder

  6. Arduino UNO Smart Water Quality Monitoring System with pH Sensor, Turbidity Sensor and LCD Display

  7. Arduino-Based Ocean Cleaning Boat Robot with Dual IBT-2 Motor Drivers and Conveyor Belt System

  8. IoT-Based Accident Detection and Health Monitoring System Using Raspberry Pi with GSM, GPS and Camera Integration

  9. Raspberry Pi RFID and Keypad Based Smart Door Lock System with LCD Display and L298N Motor Driver

  10. Smart Shopping Trolley Using Arduino UNO & RFID | Automatic Billing System

  11. Arduino UNO Based Automatic Liquid Hand Sanitizer & Soap Dispenser System

  12. Arduino Based Robotic Weeding Machine with Ultrasonic Obstacle Detection and L298N Motor Driver

  13. Arduino UNO Based Biometric Electronic Voting System with LCD Display and Fingerprint Authentication

  14. Arduino UNO Based Electronic Voting System with ILI9341 TFT Display


Comments