TerraGuard
saving indian rivers
The problem TerraGuard solves
Project Name: TerraGuard - Real-Time Illegal Sand Mining Detection System
Overview:
TerraGuard is a solar-powered IoT sensor node deployed on riverbanks that autonomously detects illegal sand mining activity in real time. The system combines ground vibration, motion, proximity, water turbidity, and GPS data to calculate a mining probability score and instantly alert forest officers - before miners can escape.
Problems We Are Solving:
-
Zero Real-Time Detection
Illegal mining runs entirely at night. No existing system detects it as it happens. By the time authorities receive a tip and respond, the site is empty. TerraGuard detects the event within seconds of it starting. -
₹4,700 Crore Annual Revenue Loss
Tamil Nadu loses this amount every year to illegal sand theft. A single TerraGuard node costs under ₹3,000 - making large-scale river monitoring economically viable for the first time.
- Groundwater & Ecosystem Collapse
Undetected mining causes permanent riverbank erosion and groundwater depletion threatening drinking water for millions. Early detection stops damage before it becomes irreversible.
- Madras High Court Mandate - Unsolved
The court ordered Tamil Nadu to implement a real-time mining tracking system by March 31, 2026. No solution exists yet. TerraGuard directly fulfills this mandate with GPS-stamped, timestamped evidence logs built for legal use.
How It Works:
Sensor node reads vibration, motion, distance, water turbidity, and light simultaneously. ESP32 microcontroller POSTs data to a cloud backend every 5 seconds. An AI model calculates a confidence score. If mining is detected, GPS-tagged alerts are pushed instantly to a role-based dashboard - Forest Officer, Police, and Admin each see exactly what they need to act.
Challenges we ran into
Challenges We Ran Into
- GPS Not Working Indoors
The NEO-6M initially showed no data. We realized GPS needs a clear view of the sky, which isn’t possible indoors.
- ESP32 Not Sending Data to Backend
ESP32 connected to WiFi, but POST requests weren’t reaching the FastAPI server.
- JSON Payload Errors (422)
Backend kept rejecting requests due to mismatched data types and field names.
Tracks Applied (1)
IoT & Smart Devices
Technologies used