Introduction
AranyaLink: Open-Source Forest Fire Detection Mesh Network
Aranya (अरण्य) is the Sanskrit word for forest. In the ancient world, it represented a philosophy of radical environmental interdependence—the core truth that when you protect the forest, you protect everything the forest sustains. AranyaLink is an infrastructure-free, low-cost wildfire early-warning platform designed to democratize conservation technology. Built on standard ESP32 microcontrollers, each fully autonomous node costs less than $10 to manufacture and requires absolutely zero cellular network connections, internet routers, central clouds, or subscription fees.
System Architecture & Network Logic
Traditional early-warning deployments rely on a standard hub-and-spoke configuration, where every remote element pushes telemetry up to a central gateway. In a massive wildfire, that central gateway is the exact piece of tracking infrastructure most likely to be overrun and destroyed by the expanding fire front, killing the entire network instantly.
AranyaLink completely removes the central coordinator. It utilizes a completely flat, decentralized, peer-to-peer routing topology running over the ESP-NOW radio protocol. Every node functions simultaneously as a localized detection terminal and an independent repeater node.
[ Ignition Event ]
│
▼
[ Node 1 (Detect) ] ──(ESP-NOW Broadcast)──► [ Node 2 (Verify & Relay) ]
│
(ESP-NOW Multi-Hop Link)
│
▼
[ Node 3 (Verify & Relay) ]
│
(Canopy Perimeter Exit)
│
▼
[ Ground Control Station ]
│
(Serial Frame)
│
▼
[ Live GPS Google Maps Link ]
The Three Operational Stages of a Data Packet:
- Detect: A node's onboard temperature sensor and infrared eye register anomalies at the exact same millisecond. The microcontroller uses its hardware random number generator (esp_random()) to seal a unique 32-bit packetID, populates its active GPS coordinate matrix, and broadcasts a raw binary packet into the air.
- Verify & Relay: Every neighboring node that intercepts the payload instantly polls its own physical sensors. If its local environment also verifies fire criteria, it logs its unique NODE_ID into an internal trace array and ticks up a global verification counter before flinging the data forward. If local conditions are completely clear, it simply forwards the packet unmodified. This dual-factor check automatically screens out localized false positives.
- Propagate: The alert chain hops node-to-node across the forest canopy entirely offline. The instant the signal hits a perimeter Ground Control Station (GCS), the receiver unpacks the telemetry and logs a structured, GPS-precise formatting string containing a clickable Google Maps navigation link directly to the hot origin point.
Architectural Loop Prevention
To keep rapid transmissions from circling indefinitely inside tight, dense canopy node positions, each independent chip maintains a rolling 10-slot internal memory buffer cache of recently handled packetID strings. If an active alert reflects backward or travels in circles, the chip identifies the unique token signature and silently drops the execution chain.
Hardware Requirements & Supplies
Per Remote Sensor Node (~$10 Core Budget):
- Microcontroller: ESP32 DevKit v1 (30-pin variant)
- Thermal Telemetry: DHT11 Ambient Temperature & Humidity Sensor
- Optical Tracking: 3-Pin Infrared Flame Sensor Module (KY-026 or generic breakout)
- Geo Location: Neo-6M GPS Module (including ceramic patch antenna array)
Autonomous Power Subsystem (Permanent Deployment):
- Storage Cell: 18650 Li-ion battery cell
- Charge Control: TP4056 Lithium Charge Management Circuit
- Voltage Regulation: 5V DC-to-DC Step-Up Boost Converter Module
- Energy Harvesting: 5V Widescreen Polycrystalline Mini Solar Panel (1W – 2W footprint)
Perimeter Ground Control Station:
- Receiver Unit: 1 x Base-model ESP32 DevKit Core (requires no external peripherals or wiring topology)
- Interface Link: Widescreen laptop/PC tracking connection via standard USB serial pass-through
Circuit Interconnection & Pin Mapping
All remote sensor modules connect directly to the central 3.3V logic outputs of the ESP32 chip with no external level-shifters required.
| Peripheral Component | Module Pin | Target ESP32 GPIO / Pin | Structural Notes |
|----------------------|------------|-------------------------|------------------------------------------------|
| **DHT11 Thermal** | VCC | 3V3 | Connects to main 3.3V power bus. |
| **DHT11 Thermal** | DATA | **GPIO 23** | Requires 10kΩ pull-up resistor directly to 3V3 |
| **DHT11 Thermal** | GND | GND | Shared system ground plane. |
| **KY-026 IR Eye** | VCC | 3V3 | Connects to main 3.3V power bus. |
| **KY-026 IR Eye** | DO | **GPIO 25** | Digital threshold pin — Active LOW calibration |
| **KY-026 IR Eye** | GND | GND | Shared system ground plane. |
| **Neo-6M GPS** | VCC | 3V3 / VIN | Wire to 3V3 (or VIN if logic uses a 5V header) |
| **Neo-6M GPS** | TX | **GPIO 16** | [cite_start]Hooks to hardware Serial2 RX pin. |
| **Neo-6M GPS** | RX | **GPIO 17** | Hooks to hardware Serial2 TX pin (Optional) |
| **Neo-6M GPS** | GND | GND | Shared system ground plane. |
Firmware Data Architecture
The underlying architecture relies on an ultra-lean binary communication protocol that uses a packed structure footprint to enforce strict byte alignments directly across the RF channels.
// Explicit alignment configuration to eliminate compiler padding discrepancies
typedef struct __attribute__((packed)) AranyaPacket {
uint32_t packetID; // Random token fingerprint to track routing loops
int originNodeID; // The physical index identifier of the source unit
float temperature; // Monitored thermal metrics in Celsius
float humidity; // Relative local humidity percentage
uint8_t flameDetected; // Binary active state from the optical photo eye
double latitude; // Floating precise coordinates from the GPS module
double longitude; // Floating precise coordinates from the GPS module
unsigned long timestamp; // Local millisecond timestamp marker of the event
int verifyingNodes[5]; // Active traceback logging matrix of assisting units
int verificationCount; // Number of concurrent sensor matches across the grid
} AranyaPacket;
Democratic Enclosure Design (Waxed Cardboard)
To ensure the physical protection match the open-source ethos of accessibility, the reference hulls are built out of recycled double-walled cardboard boxes instead of costly commercial plastic casings or industrial 3D prints.
- Structure System: Built using a box-within-a-box shell design creating an internal 5mm insulating air gap layout. Seams are reinforced with dual overlapping paths of wide packing tape.
- Wax-Barrier Infusion: A standard household paraffin candle is rubbed firmly across the outer structural paper faces. A standard high-temperature hairdryer or heat gun is passed smoothly over the exterior, melting the wax directly into the cellulose fibers. This forms an ultra-low-cost, highly water-repellent, weather-sealed field case capable of enduring variable rain elements for weeks.
The Upgrade Roadmap
AranyaLink was built from the ground up to serve as a modular foundation rather than a static layout ceiling. Every key limitation points directly to a clear drop-in technical upgrade path that leaves the core loop architecture intact:
- Long-Range Link Mapping: Swap the integrated 2.4GHz ESP-NOW broadcast protocol for standard LoRa SX1276/SX1278 transceivers via the SPI bus. This scales individual node hop distances from 150 meters up to 2 kilometers inside deep, thick brush.
- Precision Environmental Tuning: Exchange the base DHT11 thermal breakout component for an I2C-based SHT31 sensor, tightening environmental error bounds down to +/-0.3°C.
- Cellular Gateways: Hook a low-cost SIM800L module up to the Base Ground Control Station to parse arriving packets and automatically forward structural emergency text strings or Telegram alerts directly to a field ranger's phone.
- Computer Vision Elements: Integrate ultra-low-power ESP32-CAM boards running a localized, tinyml classification model directly behind the viewing panel to provide immediate photographic confirmation of smoke plumes over the treetops.
Maulik