IoT-Based Soil Temperature & Moisture Monitor
Embedded Systems

IoT-Based Soil Temperature & Moisture Monitor

Abstract: The IoT-Based Soil Temperature & Moisture Monitor is designed to measure soil moisture and soil temperature in real time using an ESP32, soil moisture sensor, and DS18B20 temperature sensor. The system collects sensor readings, processes the measurements, and displays the results on an OLED screen. Through Wi-Fi connectivity, it can also transmit data to a web or mobile dashboard for remote monitoring, historical analysis, and configurable alerts. The project aims to support better soil-condition monitoring and informed irrigation management. Project Description: This project develops an IoT-enabled soil monitoring solution using an ESP32 development board, soil moisture sensor, DS18B20 waterproof temperature probe, and optional OLED display. The soil moisture sensor measures the water content in the soil and provides an analog signal to the ESP32. The DS18B20 measures soil temperature and communicates digitally through the 1-Wire protocol. The ESP32 collects both readings and processes them into useful measurements. The current soil moisture percentage and soil temperature can be displayed locally on the OLED screen. Through Wi-Fi connectivity, the ESP32 can also send readings to a cloud platform or web dashboard, allowing users to monitor soil conditions remotely, review historical trends, and receive alerts when configured limits are crossed. Working Principle: 1. Soil Moisture Measurement: The soil moisture sensor detects the water content in the soil. 2. Soil Temperature Measurement: The DS18B20 waterproof probe measures the temperature of the soil. 3. Data Acquisition: The ESP32 reads the moisture sensor's analog output and receives digital temperature readings through the 1-Wire interface. 4. Data Processing: The ESP32 converts the moisture sensor reading into an estimated percentage using calibrated dry and wet reference values. 5. Threshold Evaluation: The system compares moisture and temperature measurements with configured reference limits. 6. Local Display: The OLED displays soil moisture percentage, soil temperature, and status indicators. 7. IoT Communication: The ESP32 transmits measurements through Wi-Fi to a compatible cloud platform or web application. 8. Alerts and Data Logging: Historical readings are stored, and notifications can be generated when configured conditions are outside the selected range. Notes: - A capacitive soil moisture sensor is generally preferable for long-term use because it is less susceptible to corrosion than basic resistive probes. - Calibrate the moisture sensor using the actual soil type and installation conditions; raw analog values vary between sensors. - The DS18B20 supports digital temperature measurement through the 1-Wire protocol and is available in waterproof probe versions. - A 4.7 kΩ pull-up resistor is commonly used between the DS18B20 data line and its supply voltage. - Ensure the DS18B20 probe is suitable for soil installation and that its cable and sealing remain protected from moisture. - Soil temperature and moisture thresholds should be configured according to the plant species, soil type, and growing conditions. - The moisture percentage is an estimate based on calibration and is not automatically a laboratory-accurate volumetric water content measurement. - ESP32 ADC inputs must remain within their permitted voltage range. Use appropriate signal conditioning where necessary. - Wi-Fi and cloud monitoring are optional extensions; local OLED monitoring can operate independently. - Protect the ESP32 and sensor connections from water exposure. Expected Outcome: The expected outcome is a functional IoT-based soil monitoring prototype that measures soil moisture and soil temperature using an ESP32 and connected sensors. It can display real-time measurements locally, provide remote monitoring through a dashboard, store historical readings, and generate alerts when configured limits are crossed. The project demonstrates how IoT technology can support soil-condition analysis, smarter irrigation decisions, agricultural monitoring, and improved plant-care management.
All Projects

Recommended Projects

IoT-Based Refrigerator Temperature Alert System

View Project

IoT-Based Compost Temperature Monitoring System

View Project
WhatsApp Contact
👋 Hi! I'm Divyika
How can I help you today?