Final Report 4
Final Report 4
CHAPTER 1
INTRODUCTION
This chapter includes introduction about warehouse, managing the warehouse with IoT and problem
statement.
1.1 BACKGROUND
Food is the basic necessity of man. It is a mixture of different nutrients such as carbohydrate, protein, fat,
vitamins and minerals. These nutrients are essential for growth, development, and maintenance of good
health throughout life.
According to an estimate of World Health Organization (WHO), approximately 1.7 million deaths per year
around the globe are associated with low intake. As shown in Figure 1.1 According to the FAO (Food and
Agriculture Organization), 1.3 billion tons a year are reported food losses account for 33% of total
production [13]. Demand for food is growing steadily and could reach about 150-170% of current demand
by 2050 [14]. Moreover, according to the World Health Organization (WHO), about 1.7 million deaths a
year worldwide are associated with malnutrition of food.
Source: Food
Production and waste of food in India Corporation
of India
350
300 318
250 293 284
200 250
150
100 117.2 120.28 125.84
50 95
0
2009 2012 2015 2018
building for storing goods. Warehouses are used by manufacturers, importers, exporters, wholesalers,
transport businesses, customs, etc. They are usually large plain buildings in industrial parks on the outskirts
of cities, towns, or villages. Stored goods can include any raw materials, packing materials, spare parts,
components, or finished goods associated with agriculture, manufacturing, and production. In India and
Hong Kong, a warehouse may be referred to as a "go-down", as shown in Figure 1.2.
There are several types of tasks in a warehouse that labour workers are employed to handle such as general
labour like cleaning, forklift operator and material handler. There’s a common notion that only automation
and equipment is expensive. But what several warehouse managers fail to realise is that manual labour
doesn’t come cheap either. labour is one of these biggest expenses some warehouses spend on, ranging from
50-70% of the overall warehousing budget.
ii. Loss due to Lack of proper knowledge
This type of loss is common in traditional warehouse, where the safekeeping of food is managed by a
labourer, in traditional warehouse due to lack of intelligence in IoT, they won’t consider to switch to new
modern technology. They neither take any precautionary measures nor they cautious about environmental
factors Refer to Figure 1.4
Similarly, Figure 1.4 shows fungus and bacterial infection in rice caused by moisture and humidity, Fungus
infection caused by excessive moisture, this fungus and bacteria will spread rapidly making unusable for
storing crops.
Using current growing technology warehouse can store goods prevent the spoilage before it happens. More
profit with semi-automated and fully automated warehouse management system can be achieved i.e, with
IoT.
Using modern technology like IoT, Embedded programming and cloud access, traditional warehouse can be
redesigned as a modern warehouse, here are some advantages of using modern warehouse. Can avoid
excessive spending on labour by using different IoT techniques, warehouse monitoring can be done by
devices instead of labour, since the monitoring is done devices which has IoT access then no need to worry
about fungal and bacterial infection, even some environmental parameters.
1.2 INTRODUCTION TO IoT
Microsoft founder Bill Gates referring to the idea of item interconnection in The Road Ahead, In 1999,
Kevin Ashton of the Massachusetts Institute of Technology Automatic Identification Center first proposed
the term “Internet of Things” and its simple concept, Since then, the application of the Internet of Things has
been gradually expanding. However, with the advancement of technology and the Internet, the era of IOT
has come. In 2013, Germany proposed the "Industry 4.0" policy, which is based on the physical and virtual
integration with the internet as the core application to the factory or everywhere, after this policy was put
forward, various countries successively put forward their own policies, the United States launched
"Advanced Manufacturing" and attracted manufacturing backflow, China launched "Made in China 2025" to
cooperate with Germany in hopes of reaching "World's Industry 4.0 Factory", Taiwan also launched
"Productivity 4.0" to autonomy the key technologies and cultivate more professional technicians. IOT has
gradually changed our lives, including improving our production efficiency, improving the convenience and
comfort of our lives, the smart life full of IOT will coming soon. In this article, we think about IOT, the data
obtained by RFID and various sensors is transmitted to the computer via LORA with Arduino to form a
Smart Warehouse Management [15]
1.3 PROBLEM STATEMENT
A warehouse management system (WMS) is a software solution that aims to simplify the complexity of
managing a warehouse. It Provide real-time insight into inventory location and quantity. Warehouse
management makes inventory a much faster, easier and efficient task. Managing a warehouse is tough but
the outcome is astonishing. The food demand is continuously increasing and could reach even more in the
near future because of the increasing population which in turn demands more. In India 40% food wasting
which has no value for farmers, because they will grow all these for months but we just wasting in minutes,
most of the farmers quitting farming because neither they getting a profit nor the food grown is using
efficiently, hence
“Save food by storing food. The food demand is continuously increasing and could reach about 150-170%
of the current demand by 2050.
CHAPTER 2
LITERATURE SURVEY
Literature survey plays an important role in the life cycle of any project. The purpose of research is to come
up with a new solution by understanding the shortcomings and obstacles in the existing system. It also
includes comparing existing and proposed method. This chapter gives some related work of the different
methods of warehouse managements and the objectives of present work.
2.1 LITERATURE REVIEW
Researchers have worked in different parameters such as Temperature sensor, Humidity sensor, LDR,
Smoke sensor, Fire sensor and many. Also, worked on different hardware devices and software platforms. In
the past some of the researchers have done related work for warehouse monitoring. Some of which are
included.
Authors [1] proposed development in internet of things based smart warehouse monitoring system. Network
of sensors includes vibration, humidity, temperature, fire sensor. It is done with the help of internet of things
and raspberry pi zero model controller adopt IOT to convey the messages. The effective open-source
language python is used for programming. The result of the paper is kit has been connected by sensors and
controller and thereby to send the alerts used the extend source as a wi-fi module. If there is an
environmental change so this IOT sends the alerts by means of messages through mobile.
Few Authors [2] proposed about safe storage of fruits and vegetables. Paper describes the environmental
factors effected on the fruits warehousing quality and traditional means of protection and proposes a multi-
parameter monitoring system based on Wi-Fi, consists of PIC16F877A microcontroller, internet of things,
four sensors temperature, light, humidity, gas sensors. Which are all connected to the PIC microcontroller
through which they send the physical parameter values to the thingspeak.com. The data collected at things
speak server can be used to perform various MATLAB analysis, MATLAB visualization by the analysts to
make a difference in the setup in accordance with the changing warehouse environment.
The authors [3] presented IOT based smart cold storage system for efficient stock management. The proto
type incorporates an IOT based smart cold storage. The paper consists of raspberry pi inbuilt wi-fi,
ARDUINO HX7111C and temperature sensor. The prototype uses a webcam to detect the presence of
objects, ARDUINO is used as weight scale controller and raspberry pi-3 as a home server. The controller
will collect all information and send them to raspberry pi-3 using python programming the weight of the
object when placed the storage box is identified.
Some authors [4] described about a real time intelligent monitoring and notification system based on internet
of things enabled approach for real time monitoring of temperature, relative humidity, luminosity and
concentration of gas in cold storage and the paper consists of sensing module wireless communication
technology, android app, microcontroller, IOT, temperature, humidity, light intensity, CO 2 sensors. C
language is used for programming.
Paper [5] titled Smart Warehouse Management System Concept with Implementation Distribution
companies use software system called WMS (warehouse Management System). WMS is important part of
the company’s and it makes the processes simple to keep track the concept of smart WMS that is
implemented in one of the largest distribution companies in bosnio and Herzegovina, the system uses
artificial intelligence and optimization algorithms to improve working process. The optimized process can
make large time environment the concept described in standard WMS by giving optimized solution to users
Dept. of ECE, VVCE, Mysuru 7
SMART WAREHOUSE MANAGEMENT SYSTEM
the implemented concept optimizes stack planning product placement stock to picking zone, transfer process
as well as order picking transport and tracking process.
The authors [6] proposed Warehouse Management System Development Based On Open Source Web
Framework With the increase in the type of product more and more companies intend to manage the
warehouse relying on WMS, However the price is much higher because of complexity develops a WMS for
small business. moreover, the software archives the target of managing storage Ex: warehouse, stock taking,
garage shift and other basic functions they develop a communication protocol between their mineral
monitoring client realizing the information of the server to PLC. Then introduces the basic process and
methods of warehouse management system established by domestic small and boos trap, which id an open
source, beautiful and flexible framework.
Authors [7] are proposed Design and Implement of Warehouse Management System Based On Apo
Warehouse management system is answer to reducing inventory cost and improving degree of customer
satisfaction AOP is aspect-oriented programming for short as a concern separation technique, which permits
the develops to create clean and well encapsulated objects without extraneous it makes the functionality. It
makes the design and codes high modularization and more structured makes concerns localized not
spreading throughout the system. Designs and implements the warehouse management information system
based on AOP it turns out by practice that the design of the system con completely meets the increasing
demands of complexity and accuracy in modern warehouse management.
A Research paper [8] on warehouse management system based on association rules, according to the
association rules obtained by the system can analyse the amount of goods involved in the association rules
according to the algorithm of association rules they are set experiment, we analyse the data in the list of
goods out of the warehouse, the steps of mining association rules can be divided into two steps. i.e., finding
sets from the transaction and set finding the association rules that satisfy the minimum support. they are
applying the association rules to the warehouse management system, when procurement staff decides to
procure the goods, whose amount is less than the minimum inventory. warehouse management system based
on the association rules will system. Obtained the rules by analysing data in the system.
The authors [9] proposed Smart Warehouse Monitoring Using Iot. The warehouse should be screened at
regular intervals to reduce storage cost of food grains due to atmospheric conditions and are documented
paper intends to develop an IoT based smart vibration, humidity, temperature, fire sensors. It is done with
the help of current technology (IoT). Raspberry controller adopts IoT technology to convey the messages.
Based on the sensor’s data the appropriate data is captured and manipulated based on the limit given in the
software and send timely information to the concern department officials of Central warehouse corporation
through SMS for moderation and corrective actions arising due to atmospheric conditions inside the
warehouse. The daring thing is to capture the ambient changes inside the warehouse. The use of LM35 is to
seize temperature changes. The DTH11 checks for moisture contents. The SW420 examines the trembling
of the earth. The blaze can also be spot using LDR and infrared. The Raspberry pi has internal Wi-Fi
module through which the IoT is connected. It also has a SD slot which stores a limit range of each sensor.
By execution and implementation of the existing technology the inventory management for the next
generation smart storehouse management is proposed with Iot enabled sensor technology.
Authors [10] presented on Warehouse Logistics Control and Management System Based on RFID. The
hardware and software of the warehouse logistics control and management system based on RFID (Radio
Frequency Identification), and explains the design scheme and implementation method of the system. The
write operation is done using the electronic tag through a tag reader. The logistics control is implemented
with PLC by communicating with SIEMENS Win CC configuration software and OPC technology. By
accessing a SQL Server, functions such as automatic data storing, querying and deleting of goods and
warehouse information are realized. The hardware includes the EFAT/LC experimental equipment, logistics
control and management computer, the electronic tag system and the tag information display device. With
an application example of the integration of electronic tag technology and logistics control/management, this
paper introduced a logistics automation management system based on RFID technology.
Few authors [11] explained about IoT Instrumented Food and Grain Warehouse Traceability System for
Farmers. The authors know the good food storage plays a very important role when it comes to food security
that is affected by both food loss and food wastage. The losses can be reduced, which will automatically
increase the amount of food availability. An IoT enabled monitoring system to deploy in remote areas where
the accessibility is very minimum for farmers with good storage facilities to reduce food losses and increase
food safety. The proposed framework monitors warehouse parameters such as temperature, humidity, CO,
motion, vibration, and smoke which is highly affected to grains. The ESP32 Wi-Fi module collects the data
from the sensors and module sends data to Node-red dashboard through MQTT broker.
Some authors [12] presented the Detection of Food Quality and Quantity at Cold Storage using IoT. They
presented a low-cost cold storage management system based on IoT to overcome the difficulties of keeping
track of food quality and quantity. Their proposed approach makes use of heterogeneous IoT devices, cloud
services, and an Android application. To keep track of food quantity we have used UV Sensor which gives
the occupancy of the box in which food is kept from which food quantity can be calculated and a MQ4 gas
sensor is to detect methane gas in the atmosphere which tells the quality (freshness) of the food.
After extensive literature survey the following gaps were identified.
Most of the authors used temperature and humidity sensors only, use of Raspberry Pi and other
microcontrollers are way expensive than node MCU which is used in the project, many of them didn’t work
on other spoilage of food grains they mostly concentrated on cold storage. To develop a WMS for
implementing the project taken few pros from this review survey, the main objective is to give a cost
effective as well as cost efficient easy to use multisensory system to farmers.
2.2 OBJECTIVES
The present project is taken up with the following objectives:
i. To Develop a cost-effective IoT instrumented Warehouse Traceability System.
ii. To enable farmers to track live data of temperature, moisture and other parameters.
iii. To Reduce the food grain spoilage.
CHAPTER 3
METHODOLOGY
This chapter includes project flow, system design, working, hardware and software requirements.
3.1 FLOW-DIAGRAM
The present project flow is as follows, the parameters of food spoilage is monitored regularly, if food
spoilage
is found the sensors output will be high and processed by microcontroller intimating the same in Blynk
Mobile application via Blynk cloud access. If food is not spoiled it will be regularly is safekeeping area.
3.2
SYSTEM DESIGN
Figure 3.2 shows the main block diagram of the proposed proto type. Each component is supplied a
regulated power supply for them to operate in co-ordination with each other. ESP8266 microcontroller
consists of in built WIFI module along with internet connection. proposed model uses low cost device
components which make it up to an affordable warehouse setup.
The module mainly consists of NodeMCU ESP8266 microcontroller which is the heart of the system. The
IoT functioning of the system is well managed by the low cost, highly efficient Wi-Fi module. There are
four sensors viz., temperature sensor and humidity sensor (DHT22), pir sensor, gas sensor (MQ3), flame
sensor and blynk mobile application which are all connected to the microcontroller. Arduino ide used to
dump the code to NodeMCU. The effective open-source language C is used for programming. The output
of each sensor is taken and virtually writing in blynk cloud. Setting different threshold for different types of
grains like rice and wheat. If the value exceeds the threshold, blynk will send the blynk notification. Blynk
mobile
application used to see the parametric values remotely and taking precautionary measures.
3.3 WORKING
Figure 3.3 shows the schematic of proposed model consist of NodeMCU ESP8226 microcontroller, blynk
application, temperature sensor and humidity sensor (DHT22), pir sensor, gas sensor (MQ3), flame sensor
which are all connected to the microcontroller.
NodeMCU ESP8266 microcontroller consists of in built WIFI module along with internet connection.
Temperature and humidity sensor are used to monitoring a live temperature and humidity in storage area.
DHT22 sensor connected to pin number D4 of NodeMCU, DHT22 gives both temperature and humidity
detection, this output from sensor is virtually written in Blynk mobile app using the pin V6 for temperature
and V5 for humidity. PIR sensor is used to detect any infrared emitting object such as human beings or
animals if it is the range of the sensor and connected to pin number D5 of NodeMCU, output from PIR is
virtually written in Blynk app using pin V0. Gas detection sensor connected to pin number A0 of
NodeMCU, we receive output when the quantity of gas exceeds the threshold and a buzzer is used and
connected to pin number D1, output is virtually written in Blynk app using the pin V1. Fire detection sensor
is connected to pin number D7 of NodeMCU, when wavelength between desired range is detected, it gives
output and connected to buzzer used as a fire alarm, connected to Blynk app via Pin V7.
Proposed system consists of hardware and software requirements, the hardware components used are listed
below.
3.4.1. NodeMCU (ESP8266)
The NodeMCU ESP8266 development board comes with the ESP-12E module containing the ESP8266 chip
having Tensilica Xtensa 32-bit LX106 RISC microprocessor. This microprocessor supports RTOS and
operates at 80MHz to 160 MHz adjustable clock frequency. NodeMCU has 128 KB RAM and 4MB of
Flash memory to store data and programs. Its high processing power with in-built Wi-Fi / Bluetooth and
ESP8266 NodeMCU has total 17 GPIO pins. NodeMCU can be powered using a Micro USB jack and VIN
pin (External Supply Pin). It supports UART, SPI, and I2C interface.
supply up to 600mA.
3.4.2. TEMPARATURE AND HUMIDITY SENSOR
DHT22 Digital Temperature and Humidity Sensor uses a capacitive humidity sensor and a thermistor to
measure the surrounding air and spits out a digital signal on the data pin (no analog input pins needed).
The DHT22 also has a capacitive sensing element and a high precision temperature measuring element
connected to a high-performance 8-bit microcontroller. Thus, it has the advantages of excellent quality,
ultra-fast response, strong anti-interference ability, and high-cost performance.
Extremely low power consumption, and with a signal transmission distance of more than 20 meters thus it’s
able to withstand the most demanding applications. Supply voltage ranges from 3.3V to 5.5V, a 5V supply is
recommended. In case of a 5V power supply, can keep the sensor as long as 20 meters. The humidity sensor
of 0 to 99.9 %RH with ±2% accuracy while the temperature sensor ranges from -40 to 80℃ with ±0.5℃
accuracy.
higher along with the gas concentration rising. Supply voltage ranges from 3.3V to 5.5V and Current
Consumption is 150mA.The Operating temperature is 14 to 122 °F (-10 to 50°C) and Detecting
Concentration is 0.05-10mg/L Alcohol.
circuit or other audio signal source. A click, beep or ring can indicate that a button has been pressed. A
conventional Piezo bell works between 3 – 12 volts DC.
3.4.7 LED
Light Emitting Diode (LED) is a semiconductor device, which can emit light when an electric current pass
through it. To do this, holes from p-type semiconductors recombine with electrons from n-type
semiconductors to produce light. The wavelength of the light emitted depends on the bandgap of the
semiconductor material. Harder materials with stronger molecular bonds generally have wider bandgaps.
i. High Reliability
ii. Portability
iii. Scalability
CHAPTER 4
This chapter describes the results obtained from the implemented warehouse management system.
Figure4.1 shows the top view of our proposed model prototype, the model made with a regular card board
resembling the structure of warehouse, it includes NodeMCU, 4 sensors (DHT22, MQ135, PIR, Fire), 2
buzzer, 1 LED and small packets.
PIR sensor
Smoke sensor
Buzzer
Gunny bags
Figure 4.2 shows the normal room temperature and humidity recorded. Figure 4.3 shows the variation in
temperature and humidity while applying heat. The above data is taken from blynk mobile application.
DHT22 Digital Temperature and Humidity Sensor uses a capacitive humidity sensor and a thermistor to
measure the surrounding air and spits.
Figure 4.4 shows no motion or movement detected. In figure 4.5 shows the output goes high whenever any
objects (insects, birds, rodents etc..) detected. It can detect any infrared emitting object such as human
beings or animals if it is the range of the sensor, or moves away from the range, or moves within the range
of the sensor.
As figure 4.6 shows no smoke or odour detected. When odour, smoke or gas intensity reaches the more than
the threshold buzzer will go high. The sensor Detecting a wide range of gases including NH3, NOX, Alcohol,
benzene, smoke and CO2.
Figure 4.8 shows no flame detected. If fire or any short circuit which catches fire the sensor will detects and
buzzer will turn on and get the reading in blynk application as shown in Figure 4.9.
CHAPTER 5
This chapter includes conclusion and future scope of our project.
5.1 CONCLUSION
A warehouse is a mercantile architecture for entrepot of stuff. Warehouses are used by producers, dealers,
traders, wholesalers, distributors, customs, etc. The use of a smart warehouse management system (WMS) is
the cherry on top of all of smart technology. This warehouse should be screened at regular intervals to
reduce storage cost of food grains due to atmospheric conditions and are to be documented.
Considering the safe storage of foods grains which is closely related to our daily life and health. The real
time monitoring on foods warehousing environment promotes the upgrading of warehouse management
system. In this model, temperature, humidity, fire, PIR and gas sensors are used in warehouse, which can be
implemented in the storage area. The proposed system validated successfully with the help of advanced
sensor technology. It will improve the effectiveness of warehouse management and reduced the error rate
remarkably based on the Internet and cloud computing technologies. Smart warehouse management system
is capable of notifying the details about the food spoils in storage area. Continuous monitoring by the real
owner of the warehouse can be done in almost real time. All the sensors are very economical when
compared with the sensors used in the other works and yields almost same results. Computational effort is
also greatly reduced by using correlated values of the different sensors.
6.1 FUTURE SCOPE
Even though our smart warehouse storage system is more efficient, the sensing coverage area is limited. So,
the sensing range has to be increased. By using more advanced sensor for detection and recognition,
irrespective of the position of the storage area the system should be able to detect and recognize them
accurately.
INTERNATIONAL CONFERENCE
1.Bharath Gowda M, Abhilash M K, Bharath B M, Pakeerappa, Suchitra M, Vinay Kumar B K, “ A
review on Smart Warehouse Management System”, International Conference on Engineering
Innovation, 3rd June 2022 (received Best paper award)
PUBLICATION
1. Bharath Gowda M, Abhilash M K, Bharath B M, Pakeerappa, Suchitra M, Vinay Kumar B K, “A
review on Smart Warehouse Management System”, IJERT (Accepted under process)
REFERENCES
[1] k.Mohanraj,S.vijayalakshmi,N.balaji,R.chithrakkannan,R.karthikeyan “ internet of things based smart warehouse
monitoring system” IEEE international conference on International Journal of Engineering and Advanced
Technology (IJEAT), 2019.
[2] Sowmya TK, Shreya V agadi, Saraswathi KG, Puneeth B nirvani, Prajwal S “implementation of IoT
Based Smart Warehouse management System” IEEE International conference on International Journal of
Engineering Research and technology (IJERT), 2018.
[3] K. umamaheswari, M. susneha and B. sheeba kala “IoT based Smart Cold Storage System for Efficient
Stock Management” IEEE International Conference on International Conference on Communication and Signal
Processing,2020
[4] Hina Afreen and Imran sarwar rajwan “an IoT Based Real Timing Intelligent Monitoring Cold Storage”
IEEE, 2021
[5] Emir zunic,Sead Delalic, Karim Hodzic,Admir besirevic, Harun “Smart Warehouse Management System
Concept With Implementation” IEEE, 2018
[6] Chuanhong Zhou, CIMS Qi-Fi “Warehouse Managemant System Development Based On Open Source
Web Framework” IEEE, 2016
[7] Luo cheng, Xu did, Lai ming yong and wang yan “Design And Implement Of Warehouse Management System
Based On Aop” IEEE,2017
[8] Zhimin Chen , Wei sung “Research on warehouse management system based on association rules” IEEE
6TH International Conference of computer science and network technology(ICCSNT), 2017
[9] K.Mohanraj, S.Vijayalakshmi, N.Balaji, R.Chithrakkannan, R.Karthikeyan “Smart Warehouse
Monitoring Using Iot” IEEE 2018
[10] Xiaoqin Lian, Xiaoli Zhang, Yifang Weng, Zhengang Duan “Warehouse Logistics Control and
Management System Based on RFID” IEEE, 2017
[11] Susmita Banerjee, Anil Kumar Saini, Himanshu Nigam, Vijay “IoT Instrumented Food and Grain
Warehouse Traceability System” IEEE, 2019
[12] Bikrant Sarmah and G. Aruna “ Detection Of Food Quality and Quantity at Cold Storage using IoT” IEEE, 2017
[13] J. Gustavsson, C. Cederberg, U. Sonesson, R. Van Otterdijk, and A. Meybeck, ‘‘Global food losses and food
waste,’’ FAO, Rome, Italy, Tech. Rep., 2011.
[14] Food and Agriculture Organization (FAO). (2009). “How to Feed the World in 2050”.
[15] Wen-Tsai Sung*, Cheng-Yen Lu, “Smart Warehouse Management Based on IoT Architecture”, 2018
APPENDIX
SOFTWARE CODE
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <DHT.h>
int pirValue;
int flame_detected;
#define DHTPIN
BlynkTimer timer;
void wifi()
Serial.begin(9600);
Serial.println("Connecting to ");
Serial.println(ssid);
(WiFi.status() != WL_CONNECTED)
{ delay(
500);
Serial.print(".");
Serial.println("");
Serial.println("WiFi connected");
void sendSensor()
{ float h = dht.readHumidity();
float t = dht.readTemperature();
if (isnan(h) || isnan(t))
{ Serial.println("Failed to
return;
Blynk.virtualWrite(V5, h);
Blynk.virtualWrite(V6, t);
Dept. of ECE, VVCE, Mysuru 29
SMART WAREHOUSE MANAGEMENT SYSTEM
Serial.print("Temperature : ");
Serial.print(t);
Serial.println(h);
{ digitalWrite(D0,
HIGH);
} else
digitalWrite(D0, LOW);
void pir()
float
moisture_percentage;
= !moisture_percentage;
Serial.println(moisture_percentage);
if (moisture_percentage == HIGH)
digitalWrite(D3,HIGH);
else
digitalWrite(D3, LOW);
Blynk.run();
Blynk.virtualWrite(V2, moisture_percentage);
void setup()
{ wifi();
Serial.begin(9600);
dht.begin(); timer.setInterval(2500L,
sendSensor); pinMode(smokeA0,
// fire sensor
pinMode(buzzer, OUTPUT);
pinMode(flame_sensor, INPUT);
digitalRead(pirPin);
Blynk.virtualWrite(V0, pirValue);
if (pirValue == HIGH)
Dept. of ECE, VVCE, Mysuru 31
SMART WAREHOUSE MANAGEMENT SYSTEM
digitalWrite(D0,HIGH);
else
analogSensor = analogRead(smokeA0);
Serial.println(analogSensor);
Serial.print("fire alert!!");
Blynk.virtualWrite(V1, analogSensor);
digitalWrite(D1,HIGH);
else
Serial.print("normal ");
Blynk.virtualWrite(V1,LOW);
digitalWrite(D1,LOW);
digitalRead(flame_sensor); if
(flame_detected == 1)
digitalWrite(buzzer, HIGH);
Blynk.virtualWrite(V7, HIGH);
else
digitalWrite(buzzer, LOW);
Blynk.virtualWrite(V7, LOW);