Professional Documents
Culture Documents
BACHELOR OF TECHNOLOGY
IN
ESTD -1995
DEPARTMENT OF ELECTRONIC AND COMMUNICATION ENGINEERING
ESTD -1995
CERTIFICATE
This is to certify that the dissertation entitled “FOOD QUALITY MONITORING SYSTEM ”
Dr. P.V. GOPI KRISHNA RAO M. E , Ph. D for Mini Project for the award of B.Tech Degree
We hereby declare that the work done in this Project titled “FOOD QUALITY MONITORING
SYSTEM ” submitted towards completion of mini project in III Year II Semester of B.Tech(ECE) at
the Rajeev Gandhi Memorial College of Engineering & Technology, Nandyal. It is an authentic
record of our original work done under the guidance of Dr. P.V. GOPI KRISHNA RAO, Professor,
Dept. of ECE, RGMCET, Nandyal..We have not submitted the matter embodied in this project for
SUBMITTED BY:
M.Obaiah 19091A04C8
M.Rakesh 20095A0413
We manifest our heartier thankfulness pertaining to your contentment over our project
guide Dr. P.V. GOPI KRISHNA RAO GARU, Professor of Electronics and Communication
Engineering department, with whose adroit concomitance the excellence has been exemplified in
bringing out this project to work with artistry.
Involuntarily, we are perspicuous to divulge our sincere gratefulness to our Principal, Dr.T.
JAYACHANDRA PRASAD GARU, who has been observed posing valiance in abundance
towards our individuality to acknowledge our project work tangentially.
At the outset we thank our honorable Chairman Dr. M. SANTHI RAMUDU GARU,
for providing us with exceptional faculty and moral support throughout the course.
Finally, we extend our sincere thanks to all the Staff Members of ECE Department who have
co-operated and encouraged us in making our project successful.
What ever one does, what, ever one achives, the first credit goes to the PARENTS be it not for their
love and affection, nothing would have been responsible. We see in every good that happens to us their love
and blessings.
SUBMITTED BY:
M.Obaiah 19091A04C8
M.Rakesh 20095A0413
ABSTRACT
Food plays a very important role in our day-to-day life. With an increase in globalization
quality of food decreases day by day. In most of the time various food processing is done to keep the
food fresh. Various preservatives or the ingredients are added in the food so that it looks like fresh or
tempting. Now most of the food is preserved with chemicals which causes the food contamination.
This contamination leads to various diseases which results that consumer wants healthy food. The
people want organic food for healthy lifestyle. So, to avoid the problems associated with the food
without human interpretation we need such a device which helps to determine the quality of food.
There is a requirement of such a device which guides us about the hygienic food. Hence to fulfill this
consumer demand we made a device that checks whether the quality of food is good or bad. This
system represents the use of various sensors in the field of the food industry. The sensors like DHT11
sensor, gas sensor, temperature sensor help in identifying the condition of food. This system makes
an effective presence in restaurants, households, small scale industries.
INDEX
List of Contents
CHAPTER -1 ........................................................................................................................................................ 1
CHAPTER-2 ......................................................................................................................................................... 3
CHAPTER-3 ......................................................................................................................................................... 5
CHAPTER-4 ....................................................................................................................................................... 14
CHAPTER 5........................................................................................................................................................ 28
5.6.3 RESULT............................................................................................................................................ 44
CHAPTER 6........................................................................................................................................................ 47
6.1 CONCLUSION.......................................................................................................................................... 47
REFERENCES ................................................................................................................................................... 48
List of Figures
CHAPTER -1
INTRODUCTION AND LITERATURE SURVEY
1.1 INTRODUCTION
Food contamination can occur in the production process, but also a large part caused by the
inefficient food handling because of inappropriate ambient conditions when the food is being transported
and stored. There are many factors leading to food poisoning, typically changes in light intensity,
temperature, alcohol content and humidity are important factors. A monitoring system capable of
measuring temperature and humidity variability during transport and storage isof prime importance.
Today almost everybody is getting affected by the food they consume, it's not only about the
junk food, but all the packed foods, vegetables, products consumed and used in daily life, as all of them
do not offer quality since their temperature, moisture, oxygen content vary from time to time. Majority
of consumers only pay attention to the information provided on the packaging, ie, the amount of
ingredients used and their nutritional value but they forget that they are blindly risking their health by
ignoring the environmental conditions to which these packets are subjected. Everyproduct making firm
just want to attract more and more costumers towards them and their main motive is to sell the product
anyhow like by adding more flavors, coloring chemicals and preservatives to increase the taste and
appearance but they forget that these moneymaking tacticsare actually affecting the consumers’ health.
High temperature and relative humidity favor the development of post-harvest decay organisms.
More acidic tissue is generally attacked by fungi, while fruits and vegetables having pH above 4.5are
more commonly attacked by bacteria. A wide variety of foods can also undergo changes in color, flavor,
and nutrient composition when exposed to light. The extent of these changes dependson many factors
including the composition of the food and the light source. Light exposure could result in color and
vitamin loss. Light also may be responsible for the oxidation of fats. Some typesof yeasts can also lead to
spoilage. True yeast metabolizes sugar producing alcohol and carbon dioxide gas. This process is known
as fermentation. Hence by checking on alcohol quantity contentone can detect the quality of food.
The system I propose is intended for food quality monitoring. In ts project, a smart quality
monitoring device will be designed that will keep watch of environmental factors like temperature,
humidity, alcohol content and exposure to light.
A huge survey was conducted throughout Europe [1] to work out necessary factors in impacting
European shopper food selection. The reporters showed that the first issue was quality/freshness
followed by style, healthy diet, money, family inclination and eventually, habits. [1] Other study
including 171 U.S. and 205 Irish shoppers concluded that brand and freshness were the foremost
highlighted attributes once asked however they determined if a nutrient is of top quality (George, 1993)
amongst the customers asked, thirty-fifth of the U.S. and thirty-eighth of Irish people customers
highlighted freshness. During 1999, freshness was the third most vital reason for choosing a primary
market, simply behind, “high quality food items” and a “hygiene and organized store” (FMI, 1999) many
other surveys were conducted to see the factors effecting food items selection amongst the population[2].
A research done by the AGV (1981) in ninety-nine cities of European country revealed that
freshness was the foremost vital issue once buying fruits and vegetables. Fifty-six pc of the two, 265
customers World Health Organization was interviewed within the streets reportable that their purchases
done by them were addicted to this criterion. During a research by Ragwort et al. (2004) in Kingdom of
Belgium, around two hundred customers stated the significance of various factors effecting the acquisition and
intake of minimally processed food items. Freshness was the foremost vital issue each at the time of buying and
using up, followed by tagged period date and style. Find (1989), United Nations agency shoppers reports of a
U.S. research.
CHAPTER-2
This project proposes a system to analyze the ambient conditions under which the food item is
being stored and transported. The proposed solution senses the temperature, humidity, alcohol content
and light parameters of surrounding environment as these parameters affect nutritional values of food
items. This system makes use of storage units implanted with various electronic sensors which can read
those parameters affecting food materials.
These quality monitoring devices keep a watch on the environmental factor that cause or pace up
decay of the food. Later, the environmental factors can be controlled like by refrigeration, vacuumstorage
etc.
The proposed solution is designed to use an IoT platform used for logging and monitoring of sensor
data. With the power of Internet of Things, the environmental factors affecting the food storage can be
monitored from anywhere, anytime and from any device.
The proposed system should be able to;
Temperature and
Humidity Sensor
MICROCONTROLLER
AVR328P
Gas Sensor
Display Unit
Power Supply
CHAPTER-3
The open-source Arduino Software (IDE) makes it easy to write code and upload it to the board.
It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing
and other open-source software. This software can be used with any Arduino board.
For the latest software visit https://www.arduino.cc/en/Main/Software.
• Arduino was born at the Ivrea Interaction Design Institute as an easy tool for fast prototyping, aimed
at students with or without a background in electronics and programming.
• Arduino is an open-source prototyping platform based on easy-to-use hardware and software.
• You can tell your board what to do by sending a set of instructions to the microcontroller on the
board.
• To do so you use the Arduino programming language (based on Writing), and the Arduino Software
(IDE), based on Processing.
• Cross-platform: The Arduino Software (IDE) runs on Windows, Macintosh OSX, and Linux
operating systems. Most microcontroller system is limited to Windows.
Simple, clear programming environment: The Arduino Software (IDE) is easy-to-use for beginners,
yet flexible enough for advanced users to take advantage of as well.
• Open source and extensible hardware: The plans of the ESP32 board are published under a Creative
Common license, so experienced circuit designers can make their own version of the module,
extending it and improving it.
• Open source and extensible software: The Arduino software is published as opensource tool and the
language can be expanded through C++ libraries
In case you use Arduino Nano, you will need an A to Mini-B cable instead as shown in the following
image
Connect the Arduino board to your computer using the USB cable. The green power LED (labeled PWR)
should glow.
To avoid any error while uploading your program to the board, you must select Arduino board name,
which matches with board connected to your Computer Here, we have selected the Arduino Uno board
according to our Project, but you must select the name matching the board that you are using.
Select the serial device of the Arduino board. Go to Tools → Serial Port menu. This is likely to be
COM3 or higher (COM1 and COM2 are usually reserved for hardware serial ports). To find out, you
can disconnect your Arduino board and re-open the menu, the entry that disappears should be of the
Arduino board. Reconnect the board and select that serial port.
Before explaining how we can upload our program to the board, we must demonstrate the function of
each symbol appearing in the Arduino IDE toolbar.
A – Used to check if there is any compilation error. B – Used to upload a program to the Arduino board.
Now, simply click the “Upload” button in the environment. Wait a few seconds; you will see the RX
and TX LEDs on the board, flashing. If the upload is successful, the message “Done uploading” will
appear in the status bar.
Note – If you have an Arduino Mini, NG, or other board, you need to press the reset button physically
on the board, immediately before clicking the upload button on the Arduino Software.
BLYNK APP:
Blynk was designed for the Internet of Things. It can control hardware remotely, it can display
sensor data, it can store data, visualize it and do many other cool things.
There are three major components in the platform:
Blynk App - allows to you create amazing interfaces for your projects using various widgets system
provide.
Blynk server-responsible for all the communications between the smartphone and hardware. You can
use our Blynk Cloud or run your private Blynk server locally. It’s open-source, could easily handle
thousands of devices and can even be launched on a Raspberry Pi. Server and process all the incoming
and out coming commands.
Now imagine: every time you press a Button in the Blynk app, the message travels to space the Blynk
Cloud, where it magically finds its way to your hardware. It works the same in the opposite direction
and everything happens in a blynk of an eye.
Blynk Libraries - for all the popular hardware platforms - enable communication.
CHAPTER-4
HARDWARE DESCRIPTION
• Arduino UNO
• Adapter
• DHT11 Sensor
• Gas Sensor
• LDR Sensor
• Breadboard
• Jumper wires
The Arduino UNO is a standard board of Arduino. Here UNO means 'one' in Italian. It was named as
UNO to label the first release of Arduino Software. It was also the first USB board released by Arduino.
It is considered the powerful board used in various projects.
Arduino.cc developed the Arduino UNO board. The Arduino microcontroller is an easy-to-use yet
powerful single board computer that has gained considerable attraction in the professional market. The
Arduino is open-source, which means the hardware is reasonably priced and the development software
is free.
The Arduino programming language is a simplified version of C/C++. If you know C programming
the Arduino will be familiar. If you do not know C, no need to worry as only a few commands are needed
to perform useful functions.
An important feature of the Arduino you can a control program on the host PC, download it to the
Arduino and it will run automatically. Remove the USB cable connection to the PC, and the program
will still run from the top each time you push the reset button. Remove the battery and put the Arduino
board in a closet for six months. When you reconnect the battery, the last program you stored will run.
This means that you connect the board to the host PC to develop and debug your program, but once that
is done, you no longer need the PC to run the program.
The power of the Arduino is not its ability to crunch code, but rather its ability to interact with the
outside world through its input-output (1/0) pins. The Arduino UNO includes 6 analog pin inputs, 14
digital pins, a USB connector, a power jack, and an ICSP (In-Circuit Serial Programming) header. It is
programmed based on IDE, which stands for Integrated Development Environment. It can run on both
online and offline platforms. The IDE is common to all available boards of Arduino.
Each digital pin can sink or source about 40 mA of current. This is more than adequate for
interfacing to most devices, but does mean that interface circuits are needed to control devices other than
simple LED's. In other words, you cannot run a motor directly using the current available from an
Arduino pin, but rather must have the pin drive an interface circuit that in turn drives the motor. A later
section of this document shows how to interface to a small motor.
To interact with the outside world, the program sets digital pins to a high or low value using C
code instructions, which corresponds to +5 V or 0 V at the pin. The pin is connected. to external interface
electronics and then to the device being switched on and off.
4.1.2 ARDUINO PIN DESCRIPTION
Every Arduino board needs a way to be connected to a power source. The Arduino UNO can be powered
from a USB cable coming from your computer or a wall power supply (like this) that is terminated in a
barrel jack. In the picture above the USB connection is labeled (1) and the barrel jack is labeled The
USB connection is also how you will load code onto your Arduino board. More on how to program with
Arduino can be found in our Installing and Programming Arduino tutorial.
NOTE: Do NOT use a power supply greater than 20 Volts as you will overpower (and thereby destroy)
your Arduino. The recommended voltage for most Arduino models is between 6 and 12 Volts.Pins (5V,
3.3V, GND, Analog, Digital, PWM, AREF).
The pins on your Arduino are the places where you connect wires to construct a circuit (probably
in conjuction with a breadboard and some wire. They usually have black plastic ‘headers’ that allow you
to just plug a wire right into the board. The Arduino has several different kinds of pins, each of which
is labeled on the board and used for different functions.
• GND (3): Short for ‘Ground’. There are several GND pins on the Arduino, any of which can be used to
ground your circuit.
• 5V (4) & 3.3V (5): As you might guess, the 5V pin supplies 5 volts of power, and the 3.3V pin supplies
3.3 volts of power. Most of the simple components used with the Arduino run happily off of 5 or 3.3
volts.
• Analog (6): The area of pins under the ‘Analog In’ label (A0 through A5 on the UNO) are Analog In
pins. These pins can read the signal from an analog sensor (like a temperature sensor) and convert it
into a digital value that we can read.
• Digital (7): Across from the analog pins are the digital pins (0 through 13 on the UNO). These pins can
be used for both digital input (like telling if a button is pushed) and digital output (like powering an
LED).
• PWM (8): You may have noticed the tilde (~) next to some of the digital pins (3, 5, 6, 9, 10, and 11 on
the UNO). These pins act as normal digital pins, but can also be used for something called
• Pulse-Width Modulation (PWM). We have a tutorial on PWM, but for now, think of these pins as
being able to simulate analog output (like fading an LED in and out).
DEPT OF ECE, RGMCET 16
FOOD QUALITY MONITORING SYSTEM
AREF (9): Stands for Analog Reference. Most of the time you can leave this pin alone. It is sometimes
used to set an external reference voltage (between 0 and 5 Volts) as the upper limit for the analog input
pins.
Reset Button
Just like the original Nintendo, the Arduino has a reset button (10). Pushing it will temporarily connect
the reset pin to ground and restart any code that is loaded on the Arduino. This can be very useful if your
code doesn’t repeat, but you want to test it multiple times. Unlike the original Nintendo however,
blowing on the Arduino doesn’t usually fix any problems.
• Power LED Indicator
Just beneath and to the right of the word “UNO” on your circuit board, there’s a tiny LED next to the
word ‘ON’ (11). This LED should light up whenever you plug your Arduino into a power source. If this
light doesn’t turn on, there’s a good chance something is wrong. Time to re-check your circuit!
• TX RX LEDs
TX is short for transmit; RX is short for receive. These markings appear quite a bit in electronics to
indicate the pins responsible for serial communication. In our case, there are two places on the Arduino
UNO where TX and RX appear – once by digital pins 0 and 1, and a second time next to the TX and RX
indicator LEDs. These LEDs will give us some nice visual indications whenever our Arduino is
receiving or transmitting data (like when we’re loading a new program onto the board).
• Main IC
The black thing with all the metal legs is an IC, or Integrated Circuit. Think of it as the brains of our
Arduino. The main IC on the Arduino is slightly different from board type to board type, but is usually
from the AT mega line of IC ’s from the ATMEL company. This can be important, as you may need to
know the IC type (along with your board type) before loading up a new program from the Arduino
software. This information can usually be found in writing on the top side of the IC. If you want to know
more about the difference between various IC’s, reading the datasheets is often a good idea.4
• Voltage Regulator
The voltage regulator is not actually something you can (or should) interact with on the Arduino.
But it is potentially useful to know that it is there and what it’s for. The voltage regulator does exactly
what it says – it controls the amount of voltage that is let into the Arduino board. Think of it as a kind
of gatekeeper; it will turn away an extra voltage that might harm the circuit. Of course, it has its limits,
so don’t hook up your Arduino to anything greater than 20 volts.
An AC adapter, AC/DC adapter, or AC/DC converter is a type of external power supply, often
enclosed in a case similar to an AC plug. Other common names include plug pack, plug-in adapter,
adapter block, domestic mains adapter, line power adapter, wall wart, power brick, wall charger, and
power adapter. Adapters for battery-powered equipment may be described as chargers or rechargers (see
also battery charger). AC adapters are used with electrical devices that require power but do not contain
internal components to derive the required voltage and power from mains power. The internal circuitry
of an external power supply is very similar to the design that would be used for a built-in or internal
supply.
FIGURE 4. 2: Adapter
These sensors are very popular for electronics hobbyists because there are very cheap but still providing great
performance. We have two versions of the DHT sensor, look a bit similarand have the same pinout, but have
different characteristics
a) DHT 11 Sensor
b) DHT 22 Sensor
The DHT22 is the more expensive version which obviously has better specifications. Its temperature
measuring range is from -40 to +125 degrees Celsius with +-0.5 degrees’ accuracy,while the DHT11
temperature range is from 0 to 50 degrees Celsius with +-2 degrees’ accuracy.Also, the DHT22 sensor
has better humidity measuring range, from 0 to 100% with 2-5% accuracy, while the DHT11 humidity
range is from 20 to 80% with 5% accuracy.
DHT 11 DHT 22
0-50°C ±2°C accuracy Temperature Range -40 to 80°C ±0.5°C
accuracy
20-80% humidity readings Humidity Range 0-100% humidity readings
with 5% accuracy with 2-5% accuracy
No more than 1 Hz Sampling Rate No more than 0.5 Hz
sampling rate (once every sampling rate (once every
second) 2 seconds)
15.5mm x 12mm x 5.5mm Body Size 15.1mm x 25mm x 7.7mm
3 to 5V power and I/O Operating Voltage 3 to 5V power and I/O
2.5mA max current use Maximum Current 2.5mA max current use
during conversion (while during conversion (while
requesting data) requesting data)
MQ-5 gas sensor is powered with 5 V DC. It can detect gas concentrations ranging from 10 to 10,000
ppm. The sensor output is an analog resistance.
A Light Dependent Resistor (LDR) is also called a photo resistor or a cadmium sulfide (CdS) cell.It is
also called a photoconductor. It is basically a photocell that works on the principle of
photoconductivity. The passive component is basically a resistor whose resistance value decreaseswhen the
intensity of light decreases. This optoelectronic device is mostly used in light varying sensor circuit, and
light and dark activated switching circuits. Some of its applications include camera light meters, street
lights, clock radios, light beam alarms, reflective smoke alarms, and outdoor clock
The snake like track shown below is the Cadmium Sulphide (CdS) film which also passes through
the sides. On the top and bottom are metal films which are connected to the terminal leads. It is designed
in such a way as to provide maximum possible contact area with the two metal films. The structure is
housed in a clear plastic or resin case, to provide free access to external light. As explained above, the
main component for the construction of LDR is cadmium sulphide (CdS), which is used as the
photoconductor and contains no or very few electrons when not illuminated. In the absence of light, it is
designed to have a high resistance in the range of mega ohms. As soonas light falls on the sensor, the
electrons are liberated and the conductivity of the material increases.When the light intensity exceeds a
certain frequency, the photons absorbed by the semiconductorgive band electrons the energy required
to jump into the conduction bands.
Breadboard is a white rectangular board with small embedded holes to insert electronic
components. It is commonly used in electronics projects. We can also say that breadboard is a
prototype that acts as a construction base of electronics.
LCD is a flat panel display technology that is commonly employed in television sets and computer
monitors. It is also used in screens for mobile devices including tablets, laptops, and smartphones.The
LCD screen has a backlight that provides light to individual pixels arranged in a rectangular grid. Each
pixel contains a red, green, and blue RGB sub-pixel that can be turned on or off. Whenthe entire pixel’s
sub-pixels are turned off, the screen appears black. When all the sub-pixels are turned on, it appears
white. On adjusting individual levels of red, green, and blue light, there are several possible color
combinations.
The backlight in LCD provides an even light source behind the screen. The light is polarized. The
liquid crystals are made up of a part solid and partly liquid substance that can be twisted through applying
electrical voltage to them. They block the polarized light when they are off but reflect it when they are
activated.
Each LCD screen contains a matrix of pixels that display the image on the screen. The matrix can
either be passive or active. The passive matrix screens control individual pixels by sending a chargeto their
row and column. On the other hand, the active-matrix contains thin film transistors (TFTs).The transistors
include capacitors that play a role in helping the pixels to retain charge. Thus, active-matrix LCDs are
more efficient and appear more responsive than passive-matrix displays (Thompson. S, 2018).
i. Cost effective
ii. Consumes lesser power compared to Light Emitting Diode screens.
iii. Utilizes little space.
iv. Light weight.
v. Less eyestrain
vi. Improved image quality
802.11 b/g/n
Dimensions: 25 x 15 x 11 mm (LxWxH)
Weight: 2 gm
4.9 Jumpers:
Jumper wires are simply wires that have connector pins at each end, allowing them to be used to connect
two points to each other without soldering. Jumper wires are typically used with breadboards and other
prototyping tools in order to make it easy to change a circuit as needed. Jumper wires are typically come
in three versions:
Male-to-Male.
Male-to-Female
Female-to-Female
The difference between each is in the end point of the wire. Male ends have a pin protruding and can
plug into things, while female ends do not and are used to plug things into. Male-to-male jumper wires
are the most common and what you likely will use most often.
When connecting two ports on a breadboard, a male-to-male wire is what you’ll need. Female to female
jumper wires for connecting standard 2.54 Mm header pin and alsorelimate connector of different type
of development board. Pack consists 40 pcs of jumper wire in 10 different colors.
CHAPTER 5
PROJECT DESCRIPTION
Connections need to be given to sensors on breadboard. Switch ON power supply. The Wi-Fi module
will be turn ON. From the mobile connect the Wi-Fi module through hotspot. Open Blynk app. The Wi-
Fi module connected to Blynk app cloud. In Blynk we need to create labeled value settings for detection
of temperature, humidity, gas, light with the pins desired pins. We need to confirm these settings. A gas
sensor is a device that measures the concentration of gas in the room and converts the concentration
variable to its equivalent voltage. Temperature sensors measure air temperature. while humidity sensors
measure relative humidity. Both sensors are often applied in combination to reduce cost. The light sensor
is used to sense the intensity of light. Type the Arduino sketch. Compile it. After Compiling if any errors
are found we need to rectify it. After that upload the code to Arduino. Before uploading In Arduino board
TX 0&1 need to remove connection. After that upload the code. Next click on serial monitor. In serial
monitor choose 115200 baud rates. Click on ok. It will send the values to cloud. The values will be
displayed on Lcd and Blynk app. The values of each sensor like humidity, temperature, gas and light
intensity will determine whether the quality of good or not
If you want to jump straight into playing with Blynk, check out Getting Started.
GETTING STARTED
Blynk was designed for the Internet of Things. It can control hardware remotely, it can display sensor
data, it can store data, visualize it and do many other cool things.
Blynk App - allows to you create amazing interfaces for your projects using various widgets system
provide.
Blynk server-responsible for all the communications between the smartphone and hardware. You can use
our Blynk Cloud or run your private Blynk server locally. It’s open-source, could easily handle thousands
of devices and can even be launched on a Raspberry Pi.
Server and process all the incoming and out coming commands.
Now imagine: every time you press a Button in the Blynk app, the message travels to space the Blynk
Cloud, where it magically finds its way to your hardware. It works the same in the opposite direction and
everything happens in a blynk of an eye.
Blynk Libraries - for all the popular hardware platforms - enable communication
1. Wi-Fi
3. Ethernet
4. USB (Serial)
5. GSM
You can find example sketches covering basic Blynk Features. They are included in the library. All the
sketches are designed to be easily combined with each other.
An account is needed to save your projects and have access to them from multiple devices from
anywhere. It’s also a security measure.
You can always set up your own Private Blynk Server and have full control.
2. Create a New Project After successfully logged into your account, start by creating a new project.
After designing the circuit diagram of the system, we constructed the system in a systematic manner. The
components used for the construction of the smart IOT food quality monitoring system are ESP32
microcontroller, a DHT-11 Sensor, LDR Light Sensor, MQ5 Gas Sensor, I2C LCD display, resistors,
connectors and a power supply module.
The test circuit was constructed in several stages. The microcontroller was first mountedon an Arduino
board to program it. The gas sensor was then interfaced with the WIFI Module. The LDR sensor and
DHT-11 Sensor were then added and interfaced with the microcontroller.
Arduino Uno board was used for ease of programming. It was then interfaced with the gas sensor.
The concentration of ethanol gas in the air was determined. The image below shows the gas sensor
connected to the Arduino Uno Board. The +5V terminal of the sensor connects into the 5V terminal of
the Arduino board.
The GND terminal of the sensor connects into the GND terminal of the Arduino. The analog pin of
sensor is connected to pin AO of Arduino. Digital pin is not used hence not connected.
DHT-11 Sensor was then added to the system by interfacing it with the Arduino Uno board. The
signal data pin was connected to pin 2 of the Arduino. The power pin was connected to +5V supply of
Arduino and GND pin connected to GND of the Arduino. Temperature and Humidity values were
observed in the serial monitor of the Arduino ide after programming
The LDR Sensor was added to the system for testing as well. The LDR is used to sense the intensity
of light. The sensor is connected to the A1 pin of the Arduino board. The sensor is connected in a potential
divider circuit (10k resistor). The LDR provides an analog voltage which is converted to digital reading
by the in-built ADC. This value wasdisplayed in the serial monitor after programming.
An I2C LCD 16x2 display was connected with Arduino Uno. With I2C module we were able toconnect
the LCD with Arduino board with only two cables. The i2c module has a built-in potentiometer which
we used for contrast adjustment.
GND to GND
Vcc to 5V
SDA to pin 21
SCL to pin 22
// Debug console
Serial.begin(9600);
lcd.init();
lcd.backlight();
print(t);
lcd.print("C");
lcd.setCursor(0,1);
lcd.print(" Humidity:");
lcd.print(h);
delay(500);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("gas=");
lcd.print(analogRead(A0));
lcd.setCursor(0,1);
lcd.print("light %=");
lcd.print(sp);
delay(500);
lcd.clear();
}
void setup()
{
// Debug console
Serial.begin(9600);
lcd.init();
lcd.backlight();
The library containing all MQ5 functions is added to Arduino IDE then the analog data pin is specified
as pin A0. The program is as shown below;
Before the DHT11 is used on the Arduino, we installed the DHT library. It has all the functions
needed to get the humidity and temperature readings from the sensor. The program was then entered
as follows;
After installation of the right library for the LDR sensor, the program shown below wasused to display
the read analog value through the serial port so we could see what was happening on varying the intensity
of light through the serial monitor.
First, the required libraries are included. We included both the wire.h and the LiquidCrystal_I2C library.
The specification for the address, dimensions and partitioning of the lcd can be followedfrom the program
code as shown below.
Test points in electronic circuits are areas where the state of the system is monitored from. This is done
by injecting test signals in these areas and observing the results. Testpoint testing or partial testing is
used to check whether the system is working correctly.It can also be used to determine the faulty point
in a system during malfunction. The current output from the gas sensor, the amplified current from the
two transistors and the voltage and current output of ESP32 pins.
The current and voltage from the power supply module are measured both for the 5 V output and
the 3.3 V output and the results compared to the specified current and voltageoutput from the module.
5.6.3 RESULT
5.7 OBSERVATION
(ripe)
5.8 Advantages
• Focuses on points of the food chain or processes that pose highest risk;
• Minimizes costs to food operators by reducing unnecessary inspection and testing costs;
5.9 Applications
CHAPTER 6
6.1 CONCLUSION
Food wastage is one of the crucial crises in the world. One of the main reasons of food wastage is
improper warehouse management and this is a solvable problem to an extent with the current
technological advancement. Over referring to different researches and solutions to this problem, we have
come to a realization that the field of IoT can provide a very efficient solution to this problem. Therefore,
we have discussed a food quality monitoring system based on IoT that will control different
environmental factors such as light intensity, humidity and temperature that are necessary to be
maintained at a threshold value to prevent the food from spoilage. It also and at the same time get alerts
when the food is spoiled.
• For application in liquid process food streams, inclusion of Nano-Detect process will be used
to develop on-line and off-line monitoring systems (sensors) which combine the expertise
of sensitive molecular biological processes with the potency of nanotechnology.
• Usage of high precision sensors to increase area of sensing.
• Integration of two or more sensors for foods which display dual parameters.
• Based on amount of calorie consumption a pressure sensor is included which helps to maintain
balanced diet.
REFERENCES
[1] Y.P. Tsang, K.L. Choy, C.H. Wu G.T.S. Ho & H.Y. Lam, “An IOT based Shelf Life
KNHH