A sensing approach for automated and real-time crop prediction in the scope of smart farming

Saurabh Lanje1*, Rameshwar Kawitkar1 and Sanjay Mishra2

*Correspondence:
Saurabh Lanje,
lanje.cfhep18@sinhgad.edu

Received: 20 July 2022; Accepted: 30 July 2022; Published: 18 August 2022.

Internet of things (IoT) sensors have the ability to provide information about agricultural fields and subsequently take action based on user input, making smart agriculture an emerging concept. The development of a smart farm system using the advantages of cutting-edge technologies like Arduino, IoT, and wireless sensor networks is proposed in this paper. The goal of the study is to use rapidly developing technology, i.e., IoT and automated smart agriculture, to its advantage. The key to increasing the production of productive crops is to keep an eye on the environment. The main feature of this paper is the creation of a system that can use ESP8266 sensors to track temperature, humidity, moisture, and even the movement of animals that could damage crops in an agricultural field. If any discrepancy is detected, the system can send an short messaging service notification to the farmer’s smartphone as well as a notification on the application that was created for the purpose. Through an android application, the system’s duplex communication link, which is based on a cellular Internet interface, enables data examination and irrigation scheduling programming. The device has the potential to be helpful in water-scarce, remote places due to its low cost and energy independence.

Keywords: Blynk, predictive analysis, ThingSpeak

Introduction

The Indian economy is heavily reliant on the agricultural sector. Rural households rely on agriculture for over 70% of their income. With almost 60% of the population employed and a 17% gross domestic product contribution, agriculture is a significant component of the Indian economy. The previous few decades have seen a significant expansion in Indian agriculture.

In spite of the agricultural sector’s modernization, we still need to develop better agricultural practices to increase crop yield. Crop productivity, soil nutrient content, smart irrigation systems, crop monitoring, and other issues are the main difficulties in agriculture. Improper irrigation management techniques lead to lower food production and less-than-ideal crop yields. Additionally, it is necessary to assist farmers in selecting the best crop to plant.

Using the IoT in agriculture is one strategy to solve these issues. IoT refers to the networking of sensors, network objects, and devices to automate routine processes and take appropriate action based on the environment. The objective of this effort is to examine agricultural improvements in order to automate irrigation and choose the best crop to be sown.

Objectives

The following are the primary objectives of this article:

1. To fully automate the irrigation system while increasing the effectiveness of the current system and minimizing human intervention.

2. To monitor the soil’s temperature, moisture, and surrounding’s temperature, humidity, and light of a particular field and predict different types of crops which can be cultivated with the help of field data analysis and comparing/referring with government agriculture stats.

3. To automate required field appliances like water pumps, crop lights, etc. with the help of IoT as well as control them from manual switches with real-time feedback on the mobile app.

4. To protect field crops from animals with the help of radar formation.

Literature review

1. The papers (1, 2, 3) present a survey of recent studies on the Design and Development of Precision Agriculture System Using Wireless Sensor Network and a Survey on Current Challenges and Technological Solutions, as well as real-time irrigation control using remote sensing and control of an irrigation system using a distributed wireless sensor network.

2. In the paper (4), a technology-assisted wireless in situ sensor network was created for Southern Finland’s river basins to monitor water and agriculture.

3. The focus of the papers (5, 6) is on how the IoT can be used in agriculture to implement smart farming and a cloud-based monitoring system for contemporary ecoagriculture.

4. The report (7) elaborates on opportunities, problems, and open research questions while addressing cybersecurity challenges in smart farming.

5. All of the earlier discussed factors were taken into account, and several technologies, particularly wireless sensor applications and wireless sensor network infrastructure, were emphasized in the papers (2, 8), and (9) (Figure 1).

FIGURE 1
www.bohrpub.com

Figure 1. Block diagram.

Flow diagram

In Figure 2, sensors collect data on parameters like soil temperature, soil moisture, the surrounding temperature, humidity, and light in the field and are sent to the controller, i.e., the NodeMCU ESP8266. Furthermore, this data will be stored in the cloud and will be shared with the ThingSpeak server. Data will be analyzed on multiple parameters in ThingSpeak and real-time results will be visualized on the user end with the help of the data visualization app on their phone. Data will be stored and analyzed for 1–3 years, depending on the time period allowed, and suitable crops will be selected using live, government, and historical data, specifically soil w.r.t surroundings.

FIGURE 2
www.bohrpub.com

Figure 2. Flow diagram.

After the predicted crop is sown, the farmers receive all of this real-time data on their smartphone, allowing them to remotely monitor their field data. The microprocessor activates/deactivates the motor, lamps, and valves in accordance with sensor data. A farmer can also manually operate the motor and lighting using switches or through a phone app. On the farm, that plant receives a consistent and controlled amount of water (Figure 2).

Hardware requirements

www.bohrpub.com

NodeMCU ESP8266: The development board NodeMCU and its open-source Lua-based firmware were created especially for IoT applications. Additionally included are ESP-12-based hardware and firmware that make use of the ESP8266 Wi-Fi SoC from Espressif Systems.

www.bohrpub.com

Soil moisture sensor: By measuring the earth’s dielectric permittivity, which is a component of the water content, the soil moisture sensor employs capacitance to measure the amount of water present in the soil. Simply insert this powerful sensor into the soil, and the percentage of the soil’s volumetric water content will be displayed.

Moisture in the soil: Capacitance is used by the sensor to determine the medium. Water content affects the soil’s dielectric permittivity. The sensor determines the soil’s water content by comparing the voltage and dielectric permittivity.

www.bohrpub.com

Soil temperature sensor: Maxim Integrated makes the DS18B20, a 1-wire programmable temperature sensor. In harsh settings like chemical solutions, mines, or soil, it is frequently employed to gauge temperature. The sensor’s enclosure is strong and has the option to be waterproof, which makes installing it simple. With a respectable accuracy of 5°C, it can measure a wide range of temperatures, from −55°C to +125°C. It is a wonderful alternative for capturing temperature readings at several locations without using up a lot of digital pins on the microcontroller because each sensor has a unique address and utilizes only one MCU pin to relay data.

www.bohrpub.com

Surrounding temperature and humidity: The basic digital temperature and humidity sensor, DHT22, is quite affordable. It generates a digital signal on the data pin by employing a capacitive humidity sensor and a thermistor to measure the air’s humidity. The Honeywell humidity sensor is used to determine whether something is damp. It communicates instrumentation quality relative to humidity execution detection with little effort and a patch- capable single inline package (SIP). Relative dampness is the amount of smoke that is currently being detected everywhere in relation to the total amount of smoke that may be detected everywhere at a given temperature.

Light (LDR): The terms photoresistor and cadmium sulfide (CdS) cell are also used to refer to light-dependent resistors, or LDRs. Another name for it is a photoconductor. It functions essentially as a photocell using the photoconductivity principle. The passive element essentially consists of a resistor, whose resistance value lowers as light intensity increases. This optoelectronic component is mostly employed in switching circuits that are actuated by light and dark, as well as light-varying sensor circuits.

www.bohrpub.com

Relay: A transfer is a switch that is operated by electricity. A switch can be accurately operated by a variety of moves using an electromagnet, but alternative working benchmarks are also utilized, such as solid-state moves. Moves are employed when a circuit must be controlled by a different low-control signal or when several circuits must be controlled by a single indication. The fundamental exchanges were utilized as enhancers in long-distance communication networks; they repeated the signal arriving from one circuit and re-transmitted it on a different circuit. In early personal computers and telephone exchanges, moves were typically utilized to carry out steady assignments.

www.bohrpub.com

OLED: A light-emitting diode (LED) with an organic compound film as the emissive electroluminescent layer generates light in response to an electric current and is referred to as an organic light-emitting diode (OLED or organic LED), also known as an organic electroluminescent (organic EL) diode.

www.bohrpub.com

Software requirements

Arduino IDE: The cross-platform Arduino Integrated Development Environment program was created using C and C++ functions. It is used to create and upload programs to boards that are compatible with Arduino as well as other vendor development boards when third-party cores are used.

www.bohrpub.com

ThingsBoard: Using the ThingSpeakTM IoT analytics platform service, you can gather, visualize, and examine realtime data streams in the cloud. Data sent by your devices to ThingSpeak is instantly visualized by ThingSpeak. You can analyze data online as it comes in thanks to ThingSpeak’s ability to run MATLAB§code. IoT solutions that require analytics are frequently prototyped and proof of concept using ThingSpeak.

www.bohrpub.com

MIT app inventor: A user-friendly, visual programming environment called MIT App Inventor makes it possible for anybody, including kids, to create fully working apps for smartphones and tablets. MIT App Inventor Beginners may launch their first straightforward app in about 30 min. Additionally, our technology is based on blocks. It creates complex, highly effective apps in a lot less time than traditional programming environments.

www.bohrpub.com

Blynk: Blynk is a platform that allows users to operate devices like Arduino, Raspberry Pi, and others remotely via iOS and Android apps. You may simply drag and drop widgets to create a graphic interface for your project on a digital dashboard. There is no board or shield that Blynk is bound to. Instead, it’s your preferred supporting hardware. Blynk will get you online and prepared for the IoT regardless of how your Arduino or Raspberry Pi is connected to the Internet—through Wi-Fi, Ethernet, or this brand-new ESP8266 chip.

www.bohrpub.com

Working and results

The system’s goal is to assist farmers in making wise selections while anticipating the crops. Along with the live data, historical temperature and humidity data from the government website is also gathered and saved to improve accuracy. The user can obtain a consolidated output and the general status of the field through this link, which enables them to make better decisions. It provides the average of all the readings for a single day. The project evaluates the field’s temperature, light, and humidity using real-time data from a DHT-22 sensor and historical data from a government website, as well as the farmer’s chosen kind of soil, in order to provide certain and precise crop predictions. It can be done with read-to-use platforms like ThingSpeak, supervised or unsupervised machinelearning techniques, or both. The most accurate result, which will then be presented to the end user through the app, is determined by comparing the accuracy results obtained by ThingSpeak. The method not only suggests the best crop but also the fertilizer for that crop. The reports are available for download in text, Excel, or comma-separated values (CSV) formats for additional analysis.

After the predicted crop is planted, the sensor node, which consists of a temperature and soil moisture sensor installed on the field, transmits real-time data to the microcontroller. Most of the time, a moisture/temperature range is prespecified in the datasheet of the module with respect to the surrounding data range, and whenever the actual values depart from this range, the microcontroller quickly turns on the water pump or bulb, which is connected to the output pins. A farmer can also manually use switches or a phone app to regulate lights and motors.

In order to ensure that the pipes are watering the fields uniformly and that no section becomes clogged or is left too dry, the microcontroller is also equipped with a solenoid valve. Through the ThingSpeak and Blynk apps, the end user may keep an eye on the complete system. Farmers can easily monitor and irrigate their farms from a distance thanks to smart irrigation systems.

www.bohrpub.com

Results

Here, using ThingSpeak, the sensor outputs are displayed graphically for observation.

www.bohrpub.com

ThingSpeak visualizing app

www.bohrpub.com

Controlling app:

www.bohrpub.com

Conclusion

Using current, official, and historical data improves the accuracy of the outcome. Additionally, comparing several IoT-based analytical methods improves the system’s accuracy. As a result, the technology will be used to lessen the challenges faced by the farmers and to improve both the quantity and quality of their jobs.

Farmers and distant farm owners instantly and remotely receive the visualized data. Consequently, consumers can use a mobile app to modify numerous parameters from a distance.

Classifying the soil and its surroundings with a data mining algorithm aids in determining the overall health of the soil and the nutrient content of the soil. Prediction also aids in determining how much he can yield in a given soil and environment. This can help the farmer to yield a variety of crops seasonally. Also, platforms like Farmers may aggregate, monitor, and analyze real-time data streams acquired in the cloud using the IoT analytics platform service offered by ThingSpeak.

Acknowledgments

Without the help of my friends, family, professors, and advisors, this voyage would not have been feasible. I would like to express my appreciation to my family for supporting me in all of my activities and motivating me to go after my aspirations. My parents have helped me both financially and emotionally, so I am extremely appreciative of them. I’m confident that you will support me and have my best interests in mind. Thank you for showing me that knowing and understanding oneself comes first in life before I can know and understand others. Thank you to Sudhakar Lanje, my father, who has mentored me throughout this process and provided his editing skills as well as his guidance as a musician, teacher, and person. I would like to thank my guides Dr. Rameshwar Kawitkar and Dr. Sanjay S. Mishra, for their constant guidance and relaxed, thoughtful insight.

References

1. Nandurkar SR, Thool VR, Thool RC. Design and development of precision agriculture system using wireless sensor network. Proceedings of the IEEE International Conference on Automation, Control, Energy and Systems (ACES), India (2014).

Google Scholar

2. Ayaz M, Ammad-Uddin M, Sharif Z, Mansour A, Aggoune E-HM. Internet-of things (IoT)-based smart agriculture: toward making the fields talk. IEEE Access. (2019) 7:129551–83. doi: 10.1109/IEEEACCESS.2019.2932609.

CrossRef Full Text | Google Scholar

3. Kim Y, Evans R, Iversen W. Remote sensing and control of an irrigation system using a distributed wireless sensor network. IEEE Trans. Instrum. Meas. (2008) 57:1379–87.

Google Scholar

4. Kotamaki N, Thessler S, Koskiaho J, Hannukkala AO, Huitu H, Huttula T, et al. Wireless in-situ sensor network for agriculture and water monitoring on a river basin scale in Southern Finland: evaluation from a data users perspective. Sensors. (2009) 9:28622883. doi: 10.3390/s90402862

CrossRef Full Text | Google Scholar

5. Farooq MS, Riaz S, Abid A, Abid K, Naeem MA. A survey on the role of IoT in agriculture for the implementation of smart farming. IEEE Access. (2019) 7:156237–71. doi: 10.1109/ACCESS.2019.2949703

CrossRef Full Text | Google Scholar

6. Liu S, Guo L, Webb H, Ya X, Chang X. Internet of Things monitoring system of modern ecoagriculture based on cloud computing. IEEE Access. (2019) 7:37050–8. doi: 10.1109/ACCESS.2019.2903720

CrossRef Full Text | Google Scholar

7. Togneri R, Kamienski C, Dantas R, Prati R, Toscano A, Soininen J, et al. Advancing IoT-based smart irrigation. IEEE Internet Things Magaz. (2019) 2:20–5.

Google Scholar

8. Arampatzis T, Lygeros J, Manesis S. A survey of applications of wireless sensors and wireless sensor networks. Proceedings of the 2005 IEEE International Symposium on Intelligent Control & 13th Mediterranean Conference on Control and Automation. Limassol, Cyprus, 2005, 1-2, Limassol (2005). p. 719–24.

Google Scholar

9. Mirabella O, Brischetto M. A hybrid wired/wireless networking infrastructure for greenhouse management. IEEE Trans Instrum Meas. (2011) 60:398–407.

Google Scholar

10. Chrouta J, Chakchouk W, Zaafouri A, Jemli M. Modelling and control of an irrigation station process using heterogeneous cuckoo search algorithm and fuzzy logic controller. IEEE Trans Indus. Applic Modelling. (2019) 55:976–90. doi: 10.1109/TIA.2018.2871392

CrossRef Full Text | Google Scholar

11. Khan R, Ali I, Zakarya M, Ahmad M, Imran M, Shoaib M. Technology-assisted decision support system for efficient water utilization: a real-time test bed for irrigation using wireless sensor networks. IEEE Access. (2018) 6:25686–97. doi: 10.1109/IEEEACCESS.2018.2836185

CrossRef Full Text | Google Scholar