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.
IoT-powered agricultural decision support
CropSense: Smart Crop Recommendation and Monitoring System Using IoT Sensors
CropSense combines IoT soil sensing, real-time monitoring, historical data records, and crop suitability recommendations to support smarter agricultural decisions.
About CropSense
CropSense turns a connected soil-sensing workflow into an accessible monitoring experience for farmers, municipal agriculture teams, instructors, evaluators, and authorized field personnel.
An RS485 multi-parameter soil sensor connects through a MAX3485 transceiver to an ESP32, collecting moisture, soil temperature, EC, pH, nitrogen, phosphorus, and potassium.
The ESP32 validates readings before transmitting them over HTTPS to the native PHP API, where MySQL stores the field records securely.
Stored readings support condition monitoring, time-based record review, device awareness, reports, and configured crop suitability comparisons.
Core capabilities
Each capability reflects the current CropSense system and remains available only to authorized users after sign-in.
View the latest validated field measurements in a protected dashboard that refreshes without reloading the page.
Compares direct soil conditions with configured crop requirements and clearly identifies matches, near thresholds, or conditions for review.
Stores readings in MySQL and provides time filters so users can review recent and long-term field records without exposing them publicly.
Tracks the latest ESP32 communication and presents online, stale, and offline states based on reading freshness.
Surfaces stale data, offline devices, refresh problems, and invalid sensor conditions so operators know when a reading needs attention.
Provides a protected collected-data table and downloadable spreadsheet export for authorized field reporting workflows.
How CropSense works
Measurements move through a seven-stage validation and storage workflow before authorized users review them in CropSense.
Collects seven measured soil parameters from the field.
Bridges the RS485 soil sensor signal to the ESP32 interface.
Reads RS485 sensor registers using the Modbus RTU protocol.
Transmits only validated readings over an encrypted connection.
Authenticates and validates incoming field measurements.
Stores and organizes validated readings for protected use.
Displays monitoring, recommendations, records, status, and reports.
Technology
CropSense keeps the field device, web platform, and data layer focused on maintainability, secure communication, and straightforward deployment.
Project Purpose
CropSense centralizes soil information and presents it in a form that supports thoughtful crop-selection and field-monitoring decisions.
Authorized access
Sign in to view protected soil readings, crop recommendations, device status, historical records, and reports.