Soil NPK and Moisture Analysis Using Wireless Sensor Networks
Soil NPK and Moisture Analysis Using Wireless Sensor Networks
Abstract — Agriculture plays a vital role in the economic produce increases. In order to increase productivity, it is
development of our country. Crop yield primarily depends essential to automate agricultural practices.
on soil fertility and moisture level. Fertilizers are normally The quality of crops must be maintained by adding adequate
recommended based on the nutrient present in the soil. To amount of fertilizers. The existing values of NPK in the soil
recommend a suitable fertilizer level, the soil nutrient decides the quantity of fertilizers to be added [1]. Soil
analysis is essential which is done mostly using laboratory parameter measurement is extremely essential for site-specific
techniques. Manual methods of measuring soil nutrients applications in the agricultural farm areas. Traditional farming
are time consuming. Many farmers refrain to perform soil is transforming into smart farming due to the prominence of
testing in the laboratory and grow the same crop in the land Internet of Things which imparts wireless technology, to
continuously, hence soil loses its fertility. A system has been measure various soil parameters [2,3]. With the advent of
proposed to adopt precision agriculture using Wireless technology, precision farming allows to meet the ongoing
demands for crops. Low cost and less manpower are the key
Sensor Networks, which enables remote monitoring of soil
factors which enhances the need for precision agriculture.
fertility and other parameters namely soil moisture, pH
Constant monitoring of NPK values along with pH,
and temperature. This data is transmitted to the cloud and temperature and humidity of soil maintains crop quality and
the corresponding values are displayed on a mobile facilitates farmers to increase their cultivation [4-7]. Existing
application. The proposed Internet of things (IoT) based systems provides results only for specific crops or lack
software system has the intelligence to recommend the measurement of certain parameters.
quantity of water and fertilizer which improves the quality
The prominent features of the proposed system are:
of the soil and ensures optimum growth of the crop.
1. An all-in-one real-time soil monitoring system supporting
Keywords - Soil Moisture, Sensors, Nitrogen, Phosphorus, all kinds of crops.
Potassium, Mobile Application 2. The soil macronutrients - Nitrogen, Phosphorous and
Potassium , and other soil properties namely moisture, pH
and temperature will be determined using sensor.
3. The system is integrated with Arduino and NodeMCU
I. INTRODUCTION (ESP8266) using Amazon Web Services (AWS) IoT
Agriculture is the origin for food production. Soil is a cloud for data storage.
precious resource in agriculture. The physical and chemical 4. A user-friendly mobile application is developed to display
conditions of soil play a major role in the production cycle. One soil information and the recommended quantity of
of the valuable tools for farmers to improve the crop fertilizers for different crops according to the level of
productivity is the soil analysis. In this regard, soil testing plays nutrients present in the soil.
a pivotal role for crop growth. Farmers can add organic or
This paper discusses the methodology and solution
inorganic nutrients to the soil in right proportion. Yield
maximization mainly depends on soil Macronutrients namely employed to solve the problem. Henceforth, we will discuss the
Nitrogen (N), Phosphorous(P) and Potassium(K). Over and results and how the mobile application helps to see the nutrient
under provisioning of the fertilizer can greatly decrease the values, pH, temperature and moisture of the soil in real-time
production rate and results in inferior quality of agricultural and suggest the required amount of fertilizers for the desired
products. As population increases, the demands for agricultural crop.
Here
Nm – Measured Nitrogen (in ppm)
Av – Analog voltage measured by the sensor
Figure.3. Main frame in mobile application development Ncurr_low – Lower bound of value’s current range
Ncurr_upp – Upper bound of value’s current range
Ntgt_low – Lower bound of value’s target range
Ntgt_upp – Upper bound of value’s target range
Similarly, the P and K values can be calculated using the
above formula.
D. Soil temperature sensor
In order to measure the temperature of the soil, the soil
temperature sensor is used. These sensors have a variety of
designs using thermocouples and thermistors. The voltage
reading across the diode shows the working base of the sensor.
The sensors transmit electrical signals which are converted into
various units of measurement like Celsius, Kelvin and
Fahrenheit. The voltage differences are amplified, and an
analog signal is generated by the device which is directly
proportional to temperature. The specifications of soil
temperature sensor are listed in table 2.
TABLE 2. SPECIFICATIONS OF SOIL TEMPERATURE SENSOR
E. Soil pH sensor
The pH value in soil determines whether the soil is acidic or
basic in nature. The pH value of the soil influences the
availability of nutrients and microorganisms. The range of the
pH value is between 0 to 14, where 7 indicates neutral. The pH
value less than 5.5, indicates strong acidity, pH value less than
6.5 indicates moderate acidity, pH value from 6.5 to 7.5
indicates neutral, pH above 7.5 indicates alkalinity and pH
above 8.5 indicates strong alkalinity. An electrical potential
difference is obtained between a pH electrode and a reference
electrode, which is used for displaying the pH value. The Fig 5. Moisture value shown in Arduino IDE
specifications of soil pH sensor are listed in table 3.
TABLE 3. SPECIFICATIONS OF SOIL pH SENSOR
Percentage of moisture for different samples
Range 0 to 14 94
100 90
Number of samples 5 to 10 samples per acre 90
80 75
Operating Environment −40oC to 50oC
Soil Moisture (%)
70 64
Response time <= 1 minute 60
50
40
The NodeMCU communicates with Arduino Uno through 30
pins 10 and 11 and the data is serially sent to the AWS IoT 20
cloud. The mobile application developed using the Android 10
Studio would focus on the front-end development tools like UI 0
design tools and AWS Mobile SDK. The desired API’s are Sample 1 Sample 2 Sample 3 Sample 4
provided to access the sensor data. Soil Samples
Fig 6. Percentage of soil moisture for different samples
IV. RESULTS
TABLE 4. NUTRIENT VALUES FOR DIFFERENT SAMPLES
The output for various soil parameters for different soil
samples are obtained through this system and the recommended Sample Nitrogen Phosphorous Potassium
quantity of fertilizers are suggested which minimizes the usage (N) (P) (K)
of excess fertilizers thereby, maximizing the yield. With the 1 Low Medium Low
development of technology, accurate results are obtained which
2 Medium Low Low
increases the cultivation. Thus, precision agriculture makes
farming practices more precise by providing real-time 3 Low High Medium
responsive data. 4 High Medium Medium
Figures 5 illustrates the results of the soil moisture obtained
from the sensor and figure 6 shows the graphical representation
about the percentage of soil moisture present in the sample. TABLE 5. FERTILIZER RANGE FOR NITROGEN IN SOIL
TABLE 6. FERTILIZER RANGE FOR PHOSPHORUS IN SOIL micro-nutrients like copper, iron, manganese, molybdenum
Fertility Rating for Phosphorus and zinc are also required which impacts the yield. The
Levels Range system can be expanded to measure these factors with proper
integration of other additional components along with proper
Low 0 – 11kg P/ha
specifications.
Medium 11 – 22 kg P/ha
High >22 kg P/ha ACKNOWLEDGMENT
The authors sincerely thank the Science and Engineering
TABLE 7. FERTILIZER RANGE FOR POTASSIUM IN SOIL Research Board (SERB) of DST for the financial support, the
Director, ICAR- SBI, Coimbatore, and the Management and
Fertility Rating for Potassium Principal of Sri Ramakrishna Engineering College,
Levels Range Coimbatore for extending the required facilities for this
Low 0 – 118kg K/ha study.
Medium 118 – 280 kg K/ha
High >280kg K/ha
REFERENCES
[1] Shylaja.S.N and Dr.Veena M.B, “Real time monitoring of
Table 4 represents the nutrient values for different soil
soil nutrient analysis using wireless sensor networks”,
samples and tables 5, 6 and 7 shows the ranges of NPK which
International Conference Energy Communication, Data
ensures the farmers to grow appropriate crops and increase
Analytics and Soft Computing(ICECDS), IEEE, pp.3059-
cultivation.
3062, 2017.
Recommendation system aids farmers to apply right
quantity of fertilizers that ensures optimum usage. Consider [2] Dhanunjaya Naik and Dr. G.Prasanthi, “IoT Based Soil
Nr, Pr and Kr to be the ideal values of Nitrogen, Phosphorous Moisture and Temperature Monitoring Device for
and Potassium for a given crop and Nm, Pm and Km to be the Irrigation Water Pump”, International Journal of
measured values of Nitrogen, Phosphorous and Potassium. Technical Innovation in Modern Engineering & Science
(IJTIMES), Vol. 3, Issue 10, pp.39-43, October-2017.
The difference between the ideal and measured nutrients are
obtained using the following formula: [3] Madhumathi R, “Elucidating Farmers towards Smart
Agricultural Farm Building through Cloud Model”,
Let the difference in the values of measured and ideal International Conference on Computing, Communication
Nitrogen be Nf and Networking Technologies (ICCCNT), IEEE, 2019.
Nf = Nm — Nr (2)
Let the difference in the values of measured and ideal [4] Salve Akshay, Sagar Sonali, Patne Mahesh, Jangam
Phosphorous be Pf Omkar,” Soil nutrient identification using arduino and
Pf = Pm — Pr (3) electrochemical sensor”, International Research Journal
Let the difference in the values of measured and ideal of Engineering and Technology [IRJET], Vol. 5, Issue 2,
Potassium be Kf pp.1327-1329, 2018.
Kf = Km — Kr (4)
[5] R.Sindhuja and B.Krithiga, “Soil Nutrient Identification
Using Arduino”, Asian Journal of Applied Science and
Based on this difference, the amount of fertilizer is Technology (AJAST), Vol. 1, Issue 4, Pages 40-42, May
recommended, and the values are displayed in the mobile 2017.
application.
[6] Sabina Rahaman, Harshitha M, Anusha R, Bhargavi YR,
Chandana M, “Detection of NPK Ratio Level Using SVM
V. CONCLUSION AND FUTURE ENHANCEMENT Algorithm and Smart Agro Sensor System”, International
Journal of Latest Research in Engineering and
This system monitors and reports the soil moisture, N, P,
Technology, Vol. 3, Issue 7, pp.11-15, July 2017.
K, pH, and temperature values in real-time. Hence a software
system is proposed which displays the measured values of [7] Reshma U N , Prithvi P Bangera , Chethana H C, Kavya
soil parameters and provides fertilizer recommendation for Nadig N C , Keerthi D S, “Raspberry Pi based Soil
growing a desired crop. For progressive growth of a crop, in Parameters Monitoring Device using Sensors”,
addition to soil macro-nutrients (like N, P and K), several International Journal for Research in Applied Science &