
Embedded Systems
IoT-Based Compost Temperature Monitoring System
Abstract:
The IoT-Based Compost Temperature Monitoring System is designed to monitor temperature and moisture levels during the composting process using an ESP32, temperature sensor, and moisture sensor. The system collects real-time readings, processes them, and displays the results on an OLED screen. Through Wi-Fi connectivity, the ESP32 can transmit the measurements to a web or mobile dashboard for remote monitoring, historical analysis, and configurable alerts. The project aims to help users observe composting conditions and manage the decomposition process more effectively.
Project Description:
This project develops an IoT-enabled compost monitoring solution using an ESP32 development board, DS18B20 temperature sensor, soil or compost moisture sensor, and optional OLED display.
The DS18B20 waterproof probe measures the temperature inside the compost pile, while the moisture sensor estimates the moisture level of the compost material. The ESP32 collects both sensor readings and processes them to provide an overview of composting conditions.
The measurements can be displayed locally on an OLED screen and transmitted through Wi-Fi to a cloud platform or web dashboard. Users can remotely monitor compost temperature and moisture, review historical trends, and receive alerts when readings move outside configured ranges.
The system can also compare the measured conditions with reference ranges for different composting stages, such as initial decomposition, active composting, cooling, and maturation.
Working Principle:
1. Temperature Measurement: The DS18B20 probe measures the internal temperature of the compost pile.
2. Moisture Measurement: The moisture sensor estimates the water content of the compost material.
3. Data Acquisition: The ESP32 reads temperature through the 1-Wire interface and moisture through its analog input.
4. Data Processing: The ESP32 processes the readings and converts the moisture sensor output into an estimated percentage using calibration values.
5. Compost Condition Evaluation: The system compares the measured values with configured temperature and moisture ranges for the selected composting stage.
6. Local Display: The OLED displays compost temperature, moisture level, and status indicators.
7. IoT Communication: The ESP32 sends measurements through Wi-Fi to a compatible cloud platform or web dashboard.
8. Alerts and Data Logging: Historical readings are stored, and notifications can be generated when temperature or moisture readings move outside configured limits.
Notes:
- A waterproof DS18B20 probe is suitable for measuring temperature inside compost material.
- The DS18B20 uses the 1-Wire protocol and commonly requires a 4.7 kΩ pull-up resistor between its data line and supply voltage.
- A capacitive 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 compost mixture; readings can vary with material composition, compaction, and installation depth.
- A moisture percentage derived from a basic sensor is an estimate, not necessarily a laboratory-accurate measurement of water content.
- Compost temperature varies according to pile size, material composition, oxygen availability, moisture, and decomposition stage.
- Reference ranges should be treated as general guidance and adjusted to the composting method and materials.
- Use multiple temperature probes at different depths if a more representative temperature profile is required.
- Keep sensor wiring and the ESP32 protected from moisture, heat, and corrosive compost conditions.
- Wi-Fi and cloud monitoring are optional; local OLED monitoring can operate independently.
- The system monitors composting conditions but does not independently verify that compost is fully sanitized or mature.
Expected Outcome:
The expected outcome is a functional IoT-based compost monitoring prototype that measures compost temperature and moisture in real time. It can display sensor readings locally, transmit measurements to a remote dashboard, store historical data, and generate alerts when configured conditions are outside the selected ranges. It demonstrates how IoT technology can support composting observation, improve process management, and encourage effective organic waste recycling.
All Projects




