1. Introduction
Soil N, P, and K are the primary soil macronutrients essential for crop growth and production. NPK fertilization of 16-16-16 with a dose of 400 kg/ha can increase rice yields from 1.69 to 4.04 t/ha [
1]. NPK fertilization increased paddy rice yield by 35.20% [
2] and 57.72% [
3]. In precision farming, fertilizer application should consider the soil nutrient status and crop requirements. Accordingly, the contents of these nutrients in the soil are routinely measured as input data in formulating fertilizer rate recommendations for a given crop and as baseline data in soil nutrient management. Meanwhile, soil pH and electrical conductivity (EC) control these nutrient dynamics and availability; hence, both are routinely measured. The soil pH and EC data are input data to opt for soil conditioners for effective and efficient fertilizer application.
In smart farming, fertilizers are the right type and rate, and the right crop is promoted to achieve balanced and eco-friendly fertilizer application. Balanced fertilizer application needs a precise rate, considering the soil nutrient content, crop requirements, and other soil properties. Overdose fertilizer applications increase farming costs, soil pollution, and eutrophication in the water body, causing a nutrient imbalance. Contrastingly, underrate fertilizer application leads to ineffective application and limits crop growth and yield. Balanced fertilizer can increase yield by 3–7% and decrease NPK application by 35–93% [
4]. Farm-level fertilizer recommendations calculated by web-based software based on location-specific soil test values in Bangladesh can increase rice yields by 7–22% [
5].
However, farmers still apply N, P, and K fertilizers regardless of the soil nutrient status and rice requirements and without an economic calculation for the additional fertilizer cost and expected yields [
6]. Farmers usually apply NPK compound fertilizer along with P fertilizer (SP-36). If such a practice is applied in soil that contains a low soil organic carbon level, such as in Java [
7,
8], it causes a nutrient imbalance and nutrient (P and K) accumulation in the soils [
9]. Such action occurs due to limited soil information, low insights into balanced fertilizer application for high yield, and a poor understanding of sustainable soil nutrient management. Precision fertilization of food crops requires accurate data obtained from sophisticated equipment. Hyperspectral imaging using machines can support accurate N nutrient management [
10]. Tools should be developed so farmers obtain soil information and create information quickly and cheaply.
Primary soil macronutrients (N, P, and K) are usually determined in two ways, namely, laboratory procedures and field quick tests. Determining the soil nutrient content in the soil laboratory begins with sending soil samples to the laboratory, preparing the sample for analysis (drying, grinding, and sieving), and using analytical standard procedures to determine the content. However, this analytical process consumes more time (>two months) and uses chemical materials, an expensive apparatus, and equipment. Accordingly, the analytical results have been received lately and are outdated, although soil properties are dynamic. Interpreting data to determine the correct fertilizer dosage according to soil characteristics requires expertise and experience. In the field, a soil test kit could be used for soil extraction and soil nutrient determination using a color change and visual observation [
11]. This technique results in qualitative data. In addition, this method also consumes a lot of time for a given test, and more tests need more time. The reagent liquid is also limited to a given sample number and could expire; hence, it needs refilling, but a replacement is not always available. Bringing liquid to air transportation was also forbidden, limiting the use of these soil test kits.
Meanwhile, revolutionary sensor technology has been developing, including soil moisture and soil nutrient sensors [
12,
13], using indirect contact proximal sensing or direct contact probe sensing. Proximal sensing captures soil reflectance by a low-cost NIR spectrometer, where the tool does not contact the soil. Based on the built spectral library, the soil properties are determined using deep learning or machine learning [
14]. This technique is used worldwide but is inefficient for moist soil, such as in the field condition. In Indonesia, the proximal sensing approach has been studied by [
14]. Vicarra Rossel et al. [
15] provide an overview of methods and techniques in proximal soil sensing, namely, using field-based sensors to obtain signals from the soil when the sensor’s detector is in contact with or close to (within 2 m) the soil. Another technique uses the probe-based soil sensor. Capacitance probes must be inserted into the soils and in contact with the soils. This technique does not use any chemicals.
Presently, soil sensors are affordable and can measure soil moisture, soil temperature, EC, pH, and N, P, and K contents. For example, the soil sensor 7-in-1 (CWT Co., Limited, Shenzhen, China) can measure these properties simultaneously. In digital agriculture, especially IoT development, soil sensors are the main component in developing equipment sets to automate soil and crop management. For example, Lavanya et al. [
16] developed soil sensors integrated into an IoT-based fertilizer intimation system for smart agriculture. However, soil sensors can also be used to develop a portable tool for detecting soil properties, including the soil nutrient content, by a specific design and combined with other display components, connection wires, power storage, and a toolbox.
The portable soil nutrient detector can assist extension workers, farmers, researchers, and other field practitioners in determining soil properties, contents and statuses, including soil nutrients. The remaining question is how to create this portable device to determine real-time soil nutrients and properties in the field. Hence, this study aimed (i) to design and assemble a portable soil nutrient detector using available and affordable sensors and other components and (ii) to evaluate the device’s performance in the field, considering the variation of paddy soils and landscape settings. The resulting device must be portable, use various transport systems, be sensitive to soils and locations, and be user-friendly. The device is used to measure N, P, K, pH, EC, moisture, and temperature of soils in the field quickly and easily.
3. Results
3.1. Device Specification
This real-time portable soil nutrient detector can measure the contents of N, P, and K in the soil and other important soil properties in soil nutrient management, namely, soil pH, electrical conductivity (EC), moisture, and temperature. This device is the combination of four sub-components, namely, a sensor, power supply, display, and computer modules, to process measurement results into fertilizer recommendations for rice (
Oryza sative), maize (
Zea mays), soybean (
Glycine max), mungbean (
Vigna radiata), and sweet potato (
Ipomea batatas). The crops are generally grown in rotation in the Java paddy fields in Indonesia. Yearly, farmers plant rice as the main crop, followed by either maize, soybean, mungbean, or sweet potato, depending on water availability, market need, and price level. Results of the connectivity test show that every component connects well with each other.
Figure 3 shows the components of the portable soil nutrient detector.
This device needs enough power for operation. Hence, providing portable power banks is vital because the device will be brought to the field and requires long-lasting power storage. The power storage and display monitor’s light-emitting diode (LED) provide information on the energy status. A charger is provided, and this charger is easy to obtain, as it can be used for various energy storage needs and is compatible with the outlets, plugs, and power available in Indonesia (Type C or Type F plug, 230 v, 50 Hz). The power test result showed that current power storage equipment lasts four days, and so charging is rare, meaning that the device should be charged after four days. This condition is beneficial, as a power outlet is not always available in the field.
Soil sensors, important components, are available in the online marketplace at low prices. Several companies have developed these sensors; however, the main consideration in the selection is the number of soil properties that can be measured simultaneously. These sensors are commonly used to develop IoT (Internet of Things) for in situ land management and cannot be removed to other places.
Measurement results are displayed in the LCD (liquid-crystal display) monitor coding using Arduino programming language. The current display provides soil temperature, moisture, pH, EC, and soil N, P, and K information. On the monitor, an LED lamp is installed to provide information on the device’s power status. The display also exercises saving power mode, in which the monitor will beam out if not used for two minutes.
The display is refreshed every two minutes, and the value will change accordingly. To obtain nutrient information, the operator should wait for a stable value. Additionally, it is recommended to perform measurements three or five times and take the median value as a result of the measurement.
3.2. Function
As an advantage, this portable soil nutrient detector measures the soil nutrient content and selected soil properties in the field directly and quantitatively without sample preparation. Moreover, fertilizer recommendations can be directly determined in the field. Nevertheless, the current fertilizer recommendation is only for the rice, maize, soybean, mungbean, and sweet potato that grow in paddy soils.
The functions of the device include (i) measuring the contents and statuses of soil N, soil P, and soil K in real time in the fields; (ii) measuring soil pH in real time in the fields; (iii) assessing soil salinity through timely EC measurements in the field; (iv) measuring the soil moisture content in real time in the field; (v) measuring the soil temperature in real time in the fields; and (vi) determining the fertilizer rate of N, P, and K fertilizer for rice, maize, soybean, mungbean, and sweet potato planted in the paddy soils.
This device can be carried to the field, does not use liquid, is safe to be brought to other places using air transportation, and provides real-time information. Nevertheless, this device will work well in moist to wet soils in paddy fields, either irrigated paddy fields, rainfed paddy fields, or tidal paddy fields.
3.3. Field Performance
The device’s performance was tested to assess sensor sensitivity, the soil nutrient content, and soil properties of tropical paddy soils. The sensor is not sensitive or has low variability if the measurement results are the same among locations. The sensor works well if it is sensitive, resulting in differences in values among locations.
Table 3 presents brief statistics of soil properties measured by the portable soil nutrient detector. The coefficients of variance for temperature and pH are very low (<15%), suggesting that the detector is not sensitive to these soil properties. However, the detector is sensitive to moisture and EC, N, P, and K contents. Thus, the detector assists in explaining variations in these properties and may be used for further measurement in the field.
The standard deviations and CVs of the analysis results with the portable soil nutrient detector are quite high, including the results of EC, N, P, and K nutrients, which shows that this tool is quite sensitive. Meanwhile, the standard deviations and CVs of the temperature, humidity, and pH measurements are lower. It means that the analysis range is indeed low.
Figure 4 presents the relationship between the soil moisture content with soil pH, CEC, N, P, and K content. The moisture content is highly correlated with earth EC, N, P, and K contents, suggesting that the variations are controlled by soil moisture during measurement. The regression analysis indicated that the significance of variations in EC, N, P, and K contents was explained by the soil moisture content at an alpha of 0.05. There is a similar pattern in the data distribution. Thus, care should be taken when interpreting N, P, and K because that can be an error.
Figure 5 presents the relationships between EC and N, P, and K contents in the soil. A very close straight relationship exists between EC and soil N, P, and K nutrient contents, with each R
2 = 0.99. These results align with research by Othaman et al. [
20], who said that soil EC is directly proportional to the nutrient concentration. The relationships between EC and N, K, Ca, Mg, S, Na, Cl, Mn, and Zn are significant and real with Fe and Cu [
21].
4. Discussion
4.1. Significance of the Soil Nutrient Detector and Transportability
Real-time measurement of soil nutrients evaluates the nutrient status and determines the fertilizer dose for optimum crop yield. In addition, real-time soil pH and EC measurements are crucial input data for improving soil quality. Accordingly, sensor-based tools have been developed in addition to soil test kits. In sensor technology, the measurement technique can be an optical sensor that measures soil properties by detecting the different frequencies of light reflectance in NIR, MIR, and polarized light spectra. Another technique could be a resistive sensor composed of two electrodes and a desired current and another technique. This capacitance sensor is used to develop a portable device in this study.
The advancement of soil sensor technology provides options for promptly measuring soil properties. As shown in this study, fast-growing companies that perform mass production also provide low-cost sensors for further tool development. The advancement of marketplace technology provides options for sensor users to opt for the best sensor for their needs, as the metadata area is provided in the marketplace on the company’s website.
4.2. Speed, Accuracy, and Cost-Effectiveness
One problem in measuring soil nutrients is the time duration for preparation and analysis in the soil laboratory, which is about one to two months for a given soil sample. As a result, fertilizer recommendation is always late relative to the crop growth phase. More time is needed to analyze the many samples. On the contrary, in this device, the soil nutrient content can be known right after sensors are inserted into the soil. The sensor simultaneously reports nutrient contents of N, P, K, and selected soil properties (pH, EC, moisture, and temperature). Hence, more soil information is obtained from many samples/sites over a certain period. Thus, this device works faster than the laboratory method and soil test kit procedure.
The device can inform on soil nutrient conditions as early as possible. Moreover, the device can be carried to the field and detect soil nutrients quickly and in many locations in a short time. Recommendations for soil improvement and fertilization can be immediately implemented, and plant growth can be improved. Soil test kits, the available field-based kit in Indonesia, also can be used in other locations. Still, information cannot be directly known, as filling a soil sample in the tube, adding reagents, mixing soil and reagent, and waiting for a reaction are needed before color comparisons. It is performed for each soil property. If many locations are to be determined, more time is needed. Hence, this device also works faster than a soil test kit.
Currently, soil data from a soil laboratory analysis are used as a reference. Determining the fertilizer rate uses a soil correlation and calibration study in a soil testing framework where all soil data are from laboratory analysis. The need for quick information urges field-based soil testing. In Indonesia, field-based soil test kits are used, but the information is categorical data and a subjective determination by comparing similar colors. Meanwhile, the portable soil nutrient sensor results in numeric data that are non-subjective; hence, it is easy to determine its accuracy with lab data. However, there is no study of an accuracy assessment, and so there is no basis for claiming which field-based tests are more accurate for laboratory analysis.
The portable soil nutrient sensor is cost-effective because of its low cost (about USD 300), but the soil test kit costs USD 80 with reagents for 50 samples and needs replenishing at USD 67 for another 50 samples. The cost will increase by the sample number, mainly by buying additional reagents. However, portable soil nutrient sensors do not require additional costs and can operate for many soil samples.
4.3. Factors Controlling the Sensor Reading
This research used five measurements for a given sample or location to obtain stable results. It takes one to two minutes to obtain stable data. Because every measurement uses different soil information, while soil properties are dynamic, replicating the measurement three to five times is recommended. The median value can then be used as a measurement result. Sensors are sensitive to changes in soil condition and moisture.
This study indicated that the soil moisture content and salt concentration (EC) control sensor readings. The moisture content is a crucial factor for operationalizing the detector. Accordingly, the measurement should be performed in a specific moisture content range. The detector also measures the moisture content, and for this purpose, the reading should be conducted after the moisture reading stabilizes and is in the acceptable range. As indicated by
Figure 4, nutrient readings for N, P, K, and EC values are higher if moisture increases.
During the field test, the moisture range had a reasonable 22 to 78% for readings. Hence, it is suggested that the reading is in this range for paddy soils. Measurement at a moisture content lower than 20% or more than 78% shows illogical results. The ideal figure ranges from 40 to 50%.
Figure 4 also indicated high EC, N, P, and K values in two locations. This location is saline soil. The paddy fields in the coastal area of Karawang Regency are influenced by seawater (higher salinity). However, rice cultivation in the rainy season and the addition of irrigated water from The Jatiluhur Reservoir reduce soil salinity and provide good soil for rice growth. Nevertheless, there is no irrigation water in the dry season and the salt concentration increases, resulting in a high EC. Thus, it is suggested that more studies be conducted on using the detector readings in high soil salinity levels. For example, several areas of rice production centers are influenced by seawater intrusion, as found in the northern plain area of Java from Banten to Semarang, and the southern plain area from Pangandaran to Bantul (Yogyakarta).
Soil texture also controls the soil sensor reading. Sandy soil shows a low moisture content and very low value. Meanwhile, heavy clay soils show a high moisture content and high reading. Java paddy fields in this study show 20 to 80% soil moisture and field testing in the pre-rice planting stage. Water in the soil is the main key for analysis using sensors, including being a reaction medium for nutrients in the soil and making it easier for the sensor to be inserted into the soil.
The soil organic matter content also may interfere with sensor readings. Soil organic carbon controls the soil moisture content, whereas soil with a higher organic matter content retains more moisture. Considering the soil color during field testing, the soil organic matter content is low and has little effect on the sensor reading. However, the content of soil organic matter should be considered when evaluating sensor reading results.
4.4. Practical Implications and Device Limitation
Our portable soil nutrient detector offers other field tools for determining soil properties and the nutrient status, especially in Indonesia, besides soil test kits, EC meters, and pH meters. The soil nutrient detector combines all established facilities, namely determining soil temperature and soil moisture content, measuring soil pH and EC, and measuring N, P, and K contents in the soils. Hence, one measurement can determine seven soil properties, reducing the cost of buying previous tools. Moreover, other facilities not available in the existing ones are the ability to determine fertilizer rates for rice, maize, soybean, green bean, and sweet potato.
The detector does not use reagents and the colorimetric technique compared to soil test kits. Following national regulations for transferring liquids and chemical materials in air transportation, sending reagents to other areas is prohibited. Indonesia is an archipelago country that relies upon air transportation, limiting the use of soil test kits. Nevertheless, the detector can be easily sent and brought to other areas by air transportation.
Using a soil test kit needs extra work and time for mixing, stirring, and waiting for reagents to react with the soil. It becomes impractical if there are too many samples. The detector uses a short time; results arise in seconds. Many samples can be accomplished in a shorter time. Agricultural land for food crops can be immediately improved by providing ameliorant materials and appropriate fertilizer recommendations. On good-quality land, fertilization becomes more effective and efficient.
Water is the most important part of the reactions in the soil, and the soil water content is very significantly related to EC [
22]. In Lateritic soil, increasing the water content and soil temperature can affect an increasing soil EC [
23]. The soil water content influences soil anaerobic conditions and the forms of N (NO
3− and NH
4+) in the soil; it was further stated that EC could detect changes in the soil N status quickly [
24]. The soil temperature and water content affect N mineralization, where the water content has a lower influence than temperature [
25].
However, this portable soil nutrient detector can only be used for paddy soils that are saturated periodically. Due to soil moisture limitations, the device may not work for upland soils or show very low readings. Meanwhile, the device has advanced functionality to provide fertilizer rate recommendations for rice, maize, soybean, mungbean, and sweet potato as a default. Additional coding is required if other crops are to be included, namely, crops commonly planted in paddy soils or wet soils.
4.5. Future Research Directions
Our research results in a soil nutrient detector being tested in the paddy soils. The next study is to test it in upland soils and wetland soils. The moisture level controls the variation of the soil nutrient content. Our results suggested that a 30 to 70% moisture level is good for measuring soil nutrients in paddy fields. The moisture ranges should also be specified for dryland soils and wetland soils. In Indonesia, dry soils vary depending on the rainfall regime, soil texture, and parent materials. Hence, for dry soil material, testing should be performed on soils developing from felsic sedimentary rock, mafic sedimentary rock, volcanic rocks, and alluvial rock.
The next work for the established portable soil nutrient detector is a calibration study to evaluate the relationship between sensor readings and the soil laboratory analysis. Sensor calibration was conducted using different procedures, depending on the objective. For example, Polyakov et al. [
26], Stroobosscher et al. [
27], and Bhuiyan et al. [
28] developed specific sensor calibration procedures. In these works, the accuracy was measured using goodness of fit (R-squared), mean bias error, root mean square error, and index of agreement.
However, the objective of this calibration study is to observe relationship patterns and to calculate correction patterns. This sensor reading and laboratory procedure have different work bases; the sensor works on a fresh soil and volume base, while the laboratory method works on air-dried fine soil and weight bases. Soil properties are determined in the field soils using the detector, and then the soil sample is taken, and its soil properties are measured following a laboratory procedure. The accuracy assessment is determined using multiple measures: R-square, mean bias error, root mean square error, and index of agreement. Through this calibration study, a correction factor and relationship models also can be determined. Using sensor readings, one can use this correction factor and model to predict laboratory results. However, this prediction is subject to error, depending upon the model’s goodness of fit or other model performance measures.