AgroFlow
Trust, trace, and optimize every harvest
Created on 18th January 2026
•
AgroFlow
Trust, trace, and optimize every harvest
The problem AgroFlow solves
🎯 The Problem It Solves
AgroFlow solves two major gaps in agriculture today:
✅ Farm inefficiency due to manual monitoring
✅ Lack of transparency and trust in the food supply chain
👨🌾 For Farmers
1. Manual Monitoring is Exhausting
Farmers spend hours checking soil moisture, temperature, and weather conditions. AgroFlow automates this using ESP32 IoT sensors that stream real-time data to a clean dashboard, making decisions faster and easier.
2. No Proof of Quality / Authenticity
Organic certifications are expensive, paper-based, and easy to fake. AgroFlow lets farmers mint harvest batches as blockchain NFTs, creating tamper-proof proof of authenticity, farming practices, and harvest history.
3. Language Barriers
Most farming apps are English-only. AgroFlow includes an AI chatbot that supports 8+ Indian languages (Hindi, Tamil, Telugu, Kannada, Malayalam, Bengali, Marathi, Gujarati) so farmers can get help in their native language.
🛒 For Consumers
1. Food Fraud is Rampant
A large percentage of organic produce is falsely labeled. AgroFlow allows consumers to scan a QR code on produce packaging and instantly view an immutable blockchain record proving origin, farmer info, and batch details.
2. No Transparency in the Supply Chain
Consumers usually have no visibility into where food came from or how it was grown. AgroFlow’s verification page shows farm details, sensor-linked records, and on-chain proof in one place.
🏢 For the Industry
1. Smart Irrigation Saves Water
AgroFlow can trigger irrigation automatically when soil moisture drops below a threshold, helping reduce water wastage and improving sustainability.
2. Data-Driven Decisions
Historical sensor data enables smarter planning like optimizing irrigation cycles, improving planting schedules, and supporting yield prediction.
Challenges we ran into
1. Blockchain Gas Estimation Failures (MetaMask)
Problem: MetaMask kept throwing "Internal JSON-RPC error" when minting NFTs on Polygon Amoy testnet due to unreliable gas estimation.
✅ Solution:
- Added an explicit
gasLimit: 300000 - Implemented dynamic
gasPrice(2× network rate) - Added wallet balance checks before minting for clear user feedback
2. Browser vs Server Hash Functions
Problem: Used Node.js crypto module for SHA-256 hashing, but it crashed in the browser during NFT minting.
✅ Solution: Implemented browser hashing using the Web Crypto API:
const hashBuffer = await crypto.subtle.digest("SHA-256", msgBuffer);
3. Supabase Row-Level Security (RLS) Blocking Demo
Problem: Supabase RLS policies rejected anonymous inserts with
"new row violates row-level security policy" errors.
✅ Solution: Created fix_rls.sql with permissive demo-mode policies and documented that production would require strict user-scoped rules.
4. Keeping UI State in Sync After Minting
Problem: After minting, the “Mint NFT” button still appeared because nft_token_id wasn’t persisting to the database correctly.
✅ Solution:
- Fixed API mapping for
blockchain_tx_hash,nft_token_id, and mint status updates - Added fallback UI checks like
status !== "minted"to prevent incorrect states
5. OpenSea Dropped Testnet Support
Problem: Planned to display NFTs on OpenSea, but OpenSea discontinued testnet support in 2024.
✅ Solution: Replaced OpenSea links with PolygonScan NFT viewer URLs
6. Real-Time Sensor Sync + Stable Logging
Problem: ESP32 sensor values were noisy and inconsistent, causing sudden spikes in dashboard graphs.
✅ Solution: Added filtering + validation before storing values, and ensured logging happens at a stable fixed interval for smooth and accurate dashboards.
Tracks Applied (4)
Software Development
AI
Blockchain
Ethereum Track
ETHIndia
Technologies used
