IoT-powered agricultural decision support

CropSense: Smart Crop Recommendation and Monitoring System Using IoT Sensors

Understand Your Soil. Grow With Confidence.

CropSense combines IoT soil sensing, real-time monitoring, historical data records, and crop suitability recommendations to support smarter agricultural decisions.

  • IoT Monitoring
  • Real-Time Soil Data
  • Crop Recommendations
  • Cloud Dashboard
CropSense architecture Field-to-cloud workflow
Secure path
  1. 01Soil Sensor
  2. 02MAX3485
  3. 03ESP32
  4. 04Wi-Fi
  5. 05PHP API
  6. 06MySQL
  7. 07Dashboard
Supported field parameters Labels shown for system capability only
  • Soil Moisture
  • Soil Temperature
  • EC
  • pH
  • Nitrogen
  • Phosphorus
  • Potassium
7 Measured soil parameters
7 Secure field-to-dashboard stages
3 Configured crop profiles
Protected Authorized access to field data

About CropSense

From field conditions to clearer decisions.

CropSense turns a connected soil-sensing workflow into an accessible monitoring experience for farmers, municipal agriculture teams, instructors, evaluators, and authorized field personnel.

Smart Soil Monitoring

An RS485 multi-parameter soil sensor connects through a MAX3485 transceiver to an ESP32, collecting moisture, soil temperature, EC, pH, nitrogen, phosphorus, and potassium.

Cloud Data Management

The ESP32 validates readings before transmitting them over HTTPS to the native PHP API, where MySQL stores the field records securely.

Decision Support

Stored readings support condition monitoring, time-based record review, device awareness, reports, and configured crop suitability comparisons.

Core capabilities

A practical toolkit for soil intelligence.

Each capability reflects the current CropSense system and remains available only to authorized users after sign-in.

Live

Real-Time Soil Monitoring

View the latest validated field measurements in a protected dashboard that refreshes without reloading the page.

  • Soil Moisture
  • Soil Temperature
  • EC
  • pH
  • Nitrogen
  • Phosphorus
  • Potassium

Crop Suitability Recommendation

Compares direct soil conditions with configured crop requirements and clearly identifies matches, near thresholds, or conditions for review.

Historical Record Review

Stores readings in MySQL and provides time filters so users can review recent and long-term field records without exposing them publicly.

Device Monitoring

Tracks the latest ESP32 communication and presents online, stale, and offline states based on reading freshness.

Alerts & System Status

Surfaces stale data, offline devices, refresh problems, and invalid sensor conditions so operators know when a reading needs attention.

Reports & Data Records

Provides a protected collected-data table and downloadable spreadsheet export for authorized field reporting workflows.

How CropSense works

One connected journey from soil to screen.

Measurements move through a seven-stage validation and storage workflow before authorized users review them in CropSense.

  1. 01

    Soil Sensor

    Collects seven measured soil parameters from the field.

  2. 02

    MAX3485

    Bridges the RS485 soil sensor signal to the ESP32 interface.

  3. 03

    ESP32

    Reads RS485 sensor registers using the Modbus RTU protocol.

  4. 04

    Wi-Fi

    Transmits only validated readings over an encrypted connection.

  5. 05

    PHP API

    Authenticates and validates incoming field measurements.

  6. 06

    MySQL

    Stores and organizes validated readings for protected use.

  7. 07

    CropSense Dashboard

    Displays monitoring, recommendations, records, status, and reports.

Technology

Built with practical, proven tools.

CropSense keeps the field device, web platform, and data layer focused on maintainability, secure communication, and straightforward deployment.

Native PHP architecture — no Laravel framework or unnecessary application layer.
Hardware

Field sensing

  • ESP32
  • RS485 soil sensor
  • MAX3485
  • Modbus RTU
Web

Application layer

  • PHP
  • HTML5
  • CSS3
  • JavaScript
  • Bootstrap 5
  • Chart.js planned
Data

Structured storage

  • MySQL
  • Prepared statements
  • Time-filtered records
  • Spreadsheet export
Infrastructure

Delivery workflow

  • Hostinger
  • HTTPS
  • Git
  • GitHub

Project Purpose

Agricultural data that is easier to understand and act on.

CropSense centralizes soil information and presents it in a form that supports thoughtful crop-selection and field-monitoring decisions.

CropSense provides decision support. It does not replace agronomist guidance, field validation, or local growing expertise.
  • Provide accessible soil monitoring
  • Support data-driven crop selection
  • Help users understand soil conditions
  • Centralize soil data and field records
  • Improve agricultural decision support

Authorized access

Ready to monitor your field?

Sign in to view protected soil readings, crop recommendations, device status, historical records, and reports.

Sign In to CropSense