Journal of Mechatronics and Artificial Intelligence
Vol. 3 No. 1 (2026): JMAI: June 2026

Mamdani Fuzzy-Based Soil Fertility Detection Using Moisture and Color Sensors

Fikri Arif Wicaksana (Nusa Putra University)
Trisiani Dewi Hendrawati (Nusa Putra University)
Panji Narputro (Nusa Putra University)
M Farhan (Nusa Putra University)



Article Info

Publish Date
30 Jun 2026

Abstract

Soil fertility plays an important role in supporting agricultural productivity and sustainable farming practices. Conventional methods for determining soil fertility, such as visual observation of soil color and manual inspection of soil moisture, are often subjective, inefficient, and less accurate. This study proposes an Internet of Things (IoT)-based soil fertility detection system using a soil moisture sensor and a TCS3200 color sensor to provide real-time and objective soil condition monitoring. The system employs a NodeMCU ESP8266 microcontroller for data acquisition and wireless communication. Sensor data are processed using the Mamdani Fuzzy Inference System (FIS) to classify soil fertility into three categories: fertile, moderately fertile, and infertile. The developed system displays monitoring results locally through an OLED display and remotely through Google Spreadsheet integration for real-time observation. Sensor calibration and field testing were conducted using several soil samples with different moisture and color characteristics. Experimental results showed that the soil moisture sensor achieved an average error rate of 1.57%, indicating good measurement accuracy. Furthermore, the fuzzy-based classification successfully identified soil fertility levels according to the measured parameters. The integration of IoT technology and fuzzy logic provides an effective low-cost solution for precision agriculture applications, particularly for small-scale farming environments. The proposed system is expected to assist farmers in monitoring soil conditions more efficiently, accurately, and continuously.

Copyrights © 2026






Journal Info

Abbrev

jmai

Publisher

Subject

Description

The Journal of Mechatronics and Artificial Intelligence (JMAI) (E-ISSN 3048-4227 P-ISSN 3062-729X) serves as a platform for disseminating scholarly research related to the fields of mechatronics and artificial intelligence, as well as related sub-disciplines. We extend an invitation to researchers, ...