smart
smart
A
Mini Project Report submitted to Savitribai Phule Pune University, Pune
A.Y. 2024-25
Certificate
have successfully completed the Mini project entitled “Smart Farming Using IOT Technology”
under my guidance in partial fulfillment of the requirements for the Third Year of Engineering in Computer
Engineering under the Savitribai Phule Pune University during the academic year 2024-2025.
Date : ……………….
Place: ………………
Prof. Pravin M. Tambe Prof. Sharad M. Rokade
Project Guide HOD Of comp. dept.
Acknowledgement
With deep sense of gratitude we would like to thank all the people who have lit our path with their kind
guidance. We are very grateful to these intellectuals who did their best to help during our project work.
It is our proud privilege to express a deep sense of gratitude to Dr.G. B. Shinde, Principal of Sir Visvesvaraya
Institute of Technology, Nashik, for his comments and kind permission to complete this project. We remain
indebted to Prof. Sharad M. Rokade, H.O.D. Computer Engineering Department for his timely suggestion and
valuable guidance.
The special gratitude goes to Prof. Pravin M. Tambe excellent and precious guidance in completion of this
work .We thanks to all the colleagues for their appreciable help for our working project. With various industry
owners or lab technicians to help, it has been our endeavor throughout our work to cover the entire project
work.
We are also thankful to our parents who provided their wishful support for our project completion
successfully .And lastly we thank our all friends and the people who are directly or indirectly related to our
project work.
Ms. Diksha Pande
Ms. Gauri Koshti
Ms. Arti Jadhav
Ms. Pooja Kangne
Abstract
Here’s an abstract for your IoT-based agritech solution project:
The proposed IoT-based agritech solution aims to revolutionize traditional farming practices by integrating
advanced technologies for efficient resource management and enhanced productivity. The system employs
sensors to monitor critical parameters such as soil moisture, temperature, humidity, and pH levels. Data
collected from these sensors is processed by microcontrollers and transmitted to a cloud platform via
communication modules like Wi-Fi or LoRa. The cloud platform facilitates real-time data storage, analysis, and
visualization, enabling predictive analytics and informed decision-making. Actuators, such as water pumps and
motors, automate irrigation and other farming activities based on sensor inputs. A user-friendly mobile or web
application provides farmers with remote monitoring and control capabilities, ensuring accessibility and ease
of use. This solution addresses challenges like water scarcity, inefficient resource utilization, and labor-
intensive practices, paving the way for sustainable and smart agriculture.
Table Of Content
List of Abbreviations
1 PBS - phosphate buffered saline
2 FITC - fluorescein isothiocyanate
List of Abbreviations
iii.1
Chapter 1
Introduction
Agritech solutions using IoT sensors represent a groundbreaking fusion of agriculture and modern technology,
designed to enhance productivity, optimize resource use, and support sustainable farming practices. Here's an
introduction to how this works:
3. Weather Monitoring :
- IoT sensors provide hyper-local weather data to help farmers plan activities like planting, harvesting, or
spraying pesticides.
4. Livestock Management :
- Wearable sensors on livestock can track their health, movement, and feeding patterns, alerting farmers to
potential issues early.
1.2 Aim/Motivation :
The aim of the project "Agritech Solutions Using IoT Sensors" is to revolutionize the agricultural sector by
integrating modern IoT technology to improve farming practices. Its primary motives are:
1. Enhancing Productivity: Leveraging IoT sensors to provide precise, real-time data about soil, weather,
and crops, enabling farmers to optimize their efforts and maximize yields.
2. Resource Optimization: Reducing the overuse of water, fertilizers, and pesticides by monitoring the
exact needs of crops, thereby saving costs and promoting sustainable farming.
3. Environmental Conservation: Mitigating the environmental impact of traditional farming methods by
minimizing waste and promoting eco-friendly practices.
4. Decision-Making Support: Offering actionable insights through data analytics, which empower farmers
to make informed and efficient decisions.
5. Reducing Manual Effort: Automating key processes in farming to save time and labor, making
agriculture more accessible and manageable.
6. Addressing Global Food Security: Contributing to global food supply by improving the efficiency and
reliability of agricultural outputs.
1.3 Objective :
The objectives of the project "Agritech Solutions Using IoT Sensors" are focused on transforming
agriculture through innovation and technology. They include:
1. Implementing Precision Agriculture: Utilizing IoT sensors to gather data on soil conditions, weather,
and crop health to ensure precise farming practices.
2. Improving Resource Management: Reducing wastage of water, fertilizers, and pesticides by
monitoring and meeting crop-specific requirements efficiently.
3. Enhancing Crop Yield and Quality: Providing farmers with actionable insights to boost productivity and
ensure better-quality produce.
4. Promoting Sustainability: Encouraging eco-friendly agricultural practices by leveraging data-driven
decisions to minimize the environmental footprint.
5. Automating Agricultural Operations: Integrating IoT to streamline and simplify farming processes,
thereby reducing reliance on manual labor.
Chapter 2
Literature Survey
1 Dipti D. Desai . IoT-based Smart Agriculture The study highlights the use of IoT
Monitoring and Control Systems devices like Raspberry Pi and
sensors for automating irrigation
and monitoring soil moisture and
temperature
2 Abhilash Lad . Smart Agriculture Monitoring This research explores IoT's role in
and Control System Using IoT addressing challenges like water
management and crop dryness.
3 Sanskriti Sharma & Review of IoT in Agriculture: The paper discusses precision
Dr.Neelam Sharma . Enhancing Efficiency and farming and resource optimization
Sustainability using IoT technologies.
4 Ahmed Tawfiq Jamil. Systematic Literature Review on This study examines the integration
IoT Applications in Agriculture of IoT devices for real-time
monitoring of soil moisture and
temperature.
Chapter 3
Problem Statement
● Enhancing Awareness and Adoption of Modern Farming Technologies To Improve Productivity
Fig.3.1
● IOT – Driven Solutions For Predicting Climate Change And Seasonal Variation In Agriculture
● Farmers lack access to real- time weather data and prediction analytic to adopt to changing climate
conditions . IOT sensors could address this gap by providing accurate and timely environmental data.
● The absence of automated tools to continuously monitor crop health can lead to delayed identification
of issues such as pests or diseases. IoT sensors could enable early detection and intervention.
Chapter 4
Methodology
4.1 Algorithm :
1. Preparation:
o Import required libraries (requests, BeautifulSoup, Elasticsearch, nltk, etc.).
o Download the necessary NLTK tokenizer resource (punkt).
2. Initialize Elasticsearch:
o Set up a connection to the Elasticsearch instance running locally on http://localhost:9200.
3. Web Scraping Function:
o Define a function (scrape_website) to scrape text content from a specified website URL:
▪ Send an HTTP GET request to the URL.
▪ Parse the response HTML using BeautifulSoup.
▪ Extract and concatenate text from <p> tags (paragraphs).
▪ Return the extracted text. If an error occurs, return None.
4. Indexing Function:
o Define a function (index_website) to index the scraped content into Elasticsearch:
▪ Call the scrape_website function to get the text content of the URL.
▪ If content is found, create a document containing the URL and text content.
▪ Use Elasticsearch's index() method to store the document in the "webpages" index.
5. Flask Web API:
o Create a Flask application to provide a RESTful API for searching indexed content.
o Define an endpoint (/search) that accepts GET requests with a query parameter (q).
o Validate the query parameter; return an error if it's missing.
o Construct an Elasticsearch search body using the query parameter to perform a match query on
the content.
4.2 Flowchart : Fig. 4.2.1
START
Register
Chapter 5
Software Requirements Specification
Login
End
5.2 Software Requirement
1 Operating System:
● Linux-based systems for microcontrollers (e.g., Raspberry Pi OS).
● Real-time operating systems (RTOS) for embedded devices.
2 Programming Languages:
● Python, C/C++, or Java for device programming.
● JavaScript for web-based interfaces.
3 IoT Platforms:
● AWS IoT, Google Cloud IoT, or Microsoft Azure IoT for device management and data analytics.
4 Database Management:
● SQL databases like MySQL or PostgreSQL for structured data.
● NoSQL databases like MongoDB for unstructured data.
5 Communication Protocols:
● MQTT, HTTP/HTTPS, or CoAP for data transmission.
● LoRaWAN or Zigbee for long-range communication.
6 Data Analytics Tools:
● Machine learning frameworks like TensorFlow or PyTorch for predictive analytics.
● Visualization tools like Tableau or Power BI.
7 Mobile and Web Applications:
● Frameworks like React Native or Flutter for mobile apps.
● Angular or React for web applications.
8 Security Measures:
● Encryption protocols (e.g., SSL/TLS) for secure data transmission.
● Authentication mechanisms like OAuth
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<header>
</header>
<main>
<section class="sensor">
<h2>Temperature</h2>
</section>
<section class="sensor">
<h2>Humidity</h2>
</section>
<section class="sensor">
<h2>Soil Moisture</h2>
</section>
</main>
<script>
setInterval(() => {
}, 3000);
</script>
</body>
</html>
body {
text-align: center;
background-color: #f4f4f4;
header {
background: #28a745;
color: white;
padding: 1rem;
main {
display: flex;
justify-content: center;
gap: 20px;
padding: 20px;
.sensor {
background: white;
padding: 15px;
border-radius: 5px;
width: 150px;
}
Fig 5.2.1 code for website
Chapter 6
System Design
6.1 Block Diagram
1. Input Layer:
- Various Sensors (e.g., Soil moisture, Temperature, pH, Humidity).
2. Processing Layer:
- Microcontroller/Microprocessor (e.g., Arduino, Raspberry Pi, ESP32).
- Includes Communication Module (e.g., Wi-Fi, GSM, LoRa).
3. Storage and Analysis Layer:
- Cloud Platform (e.g., AWS IoT, Azure IoT) or local server.
- Handles Data Storage and Analytics.
4. Output Layer:
- Actuators (e.g., Pumps, Motors for irrigation, Greenhouse systems).
- User commands and automation logic.
5. User Interaction Layer:
- Mobile/Web Applications for real-time monitoring and control.
Fig 6.1.1 blockdiagram
6.2 Working :
6.2.1 Output 1
6.2.2 Output 2
GUI WORKING OF SYSTEM :
1. Web Scraping :
Your function `scrape_website (url)`:
- Uses `requests` to fetch the webpage.
- Parses the HTML using `BeautifulSoup`.
- Extracts and compiles text from all `<p>` (paragraph) tags.
2. Indexing with Elasticsearch :
Your function index_website (url) :
- Calls `scrape_website (url)` to extract the content.
- Stores the URL and its text in Elasticsearch for fast searching.
3. Searching with Flask API :
- The Flask application provides an endpoint `/search`.
- A user queries with `q` (e.g., `http://localhost:5000/ search? q=example`).
- The query is matched against stored webpage content.
- The top results (URLs and snippets of content) are returned in JSON.
1. Information Retrieval :
• Instead of manually searching websites, your tool enables users to query specific content and get
relevant results instantly. Imagine it as a personal search engine tailored to indexed web pages!
2. Research & Analysis :
• You can use this setup to analyze online content, gather insights, or track trends across different sites.
3. Automating Data Collection :
• Businesses, journalists, or researchers can automate information gathering, saving time by avoiding
repetitive manual searches.
● Predictive Analytics:
With the help of machine learning (ML) algorithms, IoT sensor systems can predict future events or
conditions based on historical data. For example, in industrial applications, machine learning models
can predict equipment failures or maintenance needs, reducing downtime and operational costs.
● Anomaly Detection:
AI-powered systems can automatically detect anomalies in the data. For instance, in healthcare,
anomalies in sensor data from wearable devices can be flagged as potential signs of a medical
condition or emergency, allowing for proactive intervention.
● Optimization Algorithms:
Machine learning can be used to optimize the performance of IoT systems, such as adjusting sensor
frequencies or power-saving modes based on usage patterns or environmental conditions.
8. IoT in Healthcare
•Wearable Health Devices:
Future IoT sensor systems can expand into wearables, monitoring critical health parameters such as heart rate,
blood pressure, and blood oxygen levels. These sensors could provide continuous health monitoring and send
alerts to healthcare providers if abnormal readings are detected.
Here are some references you can consider for your IoT sensors project. These include academic papers,
books, and reputable websites that cover key topics such as IoT, sensors, data transmission, and their
applications.
Books:
2."Architecting the Internet of Things" by Dieter Uckelmann, Mark Harrison, Florian Michahelles
o This book discusses the architecture of IoT systems, including sensor integration, connectivity, and data
management.
o Link: Architecting the Internet of Things
3."Internet of Things: Principles and Paradigms" edited by Rajkumar Buyya, Amir Vahid Dastjerdi
o A collection of research and case studies that explore various IoT applications, including sensor
networks, data collection, and analysis.
o Link: Internet of Things: Principles and Paradigms