Design and Development of Soil Nutrients Level Detection System based on Soil Color and pH for Crop Recommendations using Fuzzy Algorithms


  • Novanna Rahma Zani Politeknik Elektronika Negeri Surabaya
  • Ali Husein Alasiry Politeknik Elektronika Negeri Surabaya
  • Ardik Wijayanto Politeknik Elektronika Negeri Surabaya


In recent years, modern farmers usually taking a soil sample to the laboratory or using a soil test kit to know soil macronutrients, i.e., nitrogen (N), phosphorus (P), and potassium (K), and pH to determine what kind of crop plant is suitable for their agriculture land. However, these manual methods are costly and time consumed. The characteristic of soil samples also possibly changing by time or contact during transport. This paper presents the design and development of a portable integrated soil macronutrient level and pH detection system that can analyze soil samples quickly. To give crop recommendations, IoT components and cloud-based fuzzy inference systems are used. The fuzzy algorithm decides the crop recommendation from the soil pH and level content of N, P, and K. The user can receive the crop recommendation via the android application. Data is sent from the portable system to the cloud system and vice versa using the internet network with HTTP request protocol. The accuracy test results of system plant decision on agricultural land were compared with the fuzzy logic method have a quite uniform crop output with a small error rate of 1,66%.


. Masrie, M., Rosman, M. S., Sam, R., & Janin, Z. 2017. Detection of nitrogen, phosphorus, and potassium (NPK) nutrients of soil using optical tranducer. 2017 IEEE 4th International Conference on Smart Instrumentation, Measurement and Application (ICSIMA). doi:10.1109/icsima.2017.8312001

. Mulugeta, B. W. 2017. Landrace (Farmers’ Varieties) Diversity of Field Pea (Pisum sativum L., Fabaceae) in Arsi Zone of Oromia Region and Kefa Zone of SNNPR, Ethiopia MSc. thesis, Department of Plant Biology and Biodiversity Management, Ethiopia).

. Triharto, S. 2013. Survei dan pemetaan unsur hara N,P,K dan pH tanah pada lahan sawah tadah hujan di desa durian kecamatan pantai labu. Skripsi.

. Jain, A., Saify, A., & Kate, V. 2020. Prediction of nutrients (N, P, K)in soil using color sensor TCS3200.International Journal of InnovativeTechnology and Exploring Engineering (IJITEE), 1768-1771.doi:10.35940/ijitee.B7089.019320

. Goswami, V., Singh, P., Dwivedi, P., & Chauhan, S. (2020, May). Soil health monitoring system. International Journal for Research in Applied Science & Engineering Technology (IJRASET), 8, 1536-1540. doi:10.22214/ijraset.2020.524