Introduction

Every year, wildfires cost the United States between $394 billion and $893 billion. Globally, the 2024–25 fire season burned an area larger than India and released 8 billion tonnes of CO₂. The 2025 Southern California fires alone caused $140 billion in economic damage in a matter of weeks.
The technology to catch fires early exists. A professional IoT sensor mesh can detect a smoldering fire in under 3 minutes. A single air tanker dispatched at minute two costs $14,000 per hour. A fire crew deployed at hour three costs $1.3 million per week in wages alone. The math is not complicated — early detection saves everything downstream.
The problem is access. A state-wide sensor network costs $36 million. A single AI camera station runs $50,000 per year. Satellite subscriptions start at $12,000 annually per municipality. The communities living closest to fire-prone forests — in India, Indonesia, Brazil, rural Africa — have none of it. Roughly 30% of forest fires go undetected in their incipient stages, not because the science is hard, but because the price tag is prohibitive.

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:

  1.  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.
  2.  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.
  3.  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): 

Autonomous Power Subsystem (Permanent Deployment):

Perimeter Ground Control Station:

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.

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: