> For the complete documentation index, see [llms.txt](https://decentragri.gitbook.io/decentragri.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://decentragri.gitbook.io/decentragri.com/project-details/publish-your-docs.md).

# Architecture Overview

DecentrAgri combines IoT, blockchain, and decentralized storage to create a robust pipeline for collecting and distributing agricultural data. Our architecture ensures that every dataset—from farm to dashboard—is secure, traceable, and tamper-proof.

***

#### 🌡  Sensor Network

DecentrAgri deploys smart environmental sensors across partner farms to capture high-resolution agricultural data in real time. These multi-functional probes monitor:

* 🌱 **Soil Moisture**
* 🧪 **Soil pH Levels**
* ☀️ **Sunlight Exposure**
* 🌡 **Temperature & Humidity**
* 🌧 **Rainfall** *(where applicable)*
* 🌾 **Crop-Specific Growth Indicators**

Sensors are solar-powered, connected via WAN/Wi-Fi/5G, and calibrated for different crop types and terrains.

***

#### Edge Processing & Secure Transmission

Each sensor unit features an onboard processor that:

* Performs **preprocessing and anomaly detection** on raw data
* Encrypts data using AES standards
* Transmits datasets to the core server via secure protocols (HTTPS/SSL)

This ensures **data integrity** from the point of capture to backend ingestion.

***

#### 📍 Decentralized Storage via IPFS & Metadata NFTs

Once verified, incoming datasets are:

* Structured into standardized formats (e.g., **JSON**, **CSV**)
* Pinned to the **InterPlanetary File System (IPFS)** for decentralized and permanent storage
* Linked to metadata and **minted as non-transferable NFTs** on a blockchain such as **Polygon**, **Ethereum**, or **ApeChain**

Each NFT includes:

* 📍 **GPS Coordinates**
* 📅 **Timestamp**
* 🌽 **Crop Type**
* 🧪 **Sensor ID**
* ✅ **Farmer Consent Indicator**

> ⚠️ These NFTs are not designed for speculation or trading — they are metadata containers for auditability and provenance.

***

#### 🌍 Explorer Dashboard

A public-facing dashboard allows users to visualize and interact with on-chain farm data:

* 🔍 **Filter by region, crop type, or date range**
* 🌍 **View data entries mapped to farm locations**
* 📊 **Download open datasets for offline research**
* 🧠 **Access enriched insights for decision-making**
