IoT Review 2
IoT Review 2
Abstract :
The main objective of the Smart Environment system is to facilitate the proper
growth of plants and to control air pollution for a better future and healthy living
for all. To overcome all these problems, we are going to set up a monitoring
machine. This can be defined as a system that not only monitors the growth
but also gives alerts when there is a defect in the growth or proves a suitable
environment. This type of system can be created with the help of the Internet
of Things (IoT). IoT is basically defined as the phenomenon where the system
or a device functions with the help of the internet. The major advantage of this
system is to make a suitable environment for plant growth.
With the urbanization and with the increase in the vehicles on the road the
atmospheric conditions have been considerably affected. Harmful effects of
the pollution include mild allergic reactions such as irritation of the throat, eyes,
and nose as well as some serious problems like bronchitis, heart diseases,
pneumonia, lung, and aggravated asthma. Monitoring gives measurements of
air pollutant and sound pollution concentrations, which can then be analyzed,
interpreted, and presented. This information can then be applicable in many
ways. Analysis of monitoring data allows us to assess how bad air pollution is
from day to day.
Air Polution :
This is the air pollution monitoring system. It will monitor the air
pollution around the gas sensor. The components that are required to make
this circuit are listed here Firstly we need Arduino uno R3, Breadboard
Small, LCD, Piezo, Gas Sensor, Potentiometer, Register and Cables. Here
Arduino is the main controller. It will control all the activities that are
happening here. The Gas sensor will sense the amount of gas. Piezo is a
type of alarm. The LCD display the data and result. Breadboard is used for
extend the connections.
In the circuit, as we can see 3 pins out of 6 pins of the Gas sensor
are connected to the voltage of the Arduino (5V), 2 pins are connected
to the ground voltage(0V) and one pin is used to give the output of the
sensor. The LCD has some ground voltage pins, one pin is connected to
the Arduino and one pin is connected to the Potentionmeter. Lastly the
Piezo which is basically an alarm is connected to the Arduino which will
high when the air quality is really poor otherwise it went off.
Components Used :
Code :
#include <LiquidCrystal.h>
int pin8 = 8;
int analogPin = A0;
int sensorValue = 0;
void setup() {
pinMode(analogPin, INPUT);
pinMode(pin8, OUTPUT);
lcd.begin(16, 2);
lcd.print("What is the air ");
lcd.print("quality today?");
Serial.begin(9600);
lcd.display();
}
void loop() {
delay(1000);
sensorValue = analogRead(analogPin);
Serial.print("Air Quality in PPM = ");
Serial.println(sensorValue);
lcd.clear();
lcd.setCursor(0,0);
lcd.print ("Air Quality: ");
lcd.print (sensorValue);
if (sensorValue<=500)
{
Serial.print("Fresh Air ");
Serial.print ("\r\n");
lcd.setCursor(0,1);
lcd.print("Fresh Air");
}
else if( sensorValue>=500 && sensorValue<=650 )
{
Serial.print("Poor Air");
Serial.print ("\r\n");
lcd.setCursor(0,1);
lcd.print("Poor Air");
}
else if (sensorValue>=650 )
{
Serial.print("Very Poor Air");
Serial.print ("\r\n");
lcd.setCursor(0,1);
lcd.print("Very Poor Air");
}
if (sensorValue >650) {
digitalWrite(pin8, HIGH);
}
else {
digitalWrite(pin8, LOW);
}
}
Smart Gardening System:-
COMPONENTS USED:-
Methodology:-
● As of now the gardening system is dependent only on Temperature Sensor.
● As soon as we plug in the power the LCD display gets Switch ON and
displays the “Temperature” and the state of the Water Pump/DC Motor i.e
ON/OFF.
● The state of the DC Motor is controlled by the temperature sensor
● When the temperature is high(generally during summers), the soil gets dry
and the moisture in the soil gets reduced and therefore the DC motor/
Water Pump gets switch on.
● When the temperature is low(generally during winters),generally the soil
remain wet and there is enough moisture in the soil and therefore the DC
motor/ Water Pump remain switch off.
● This is the general working of our project as of now..
● We are trying to add both the temperature and the moisture sensor for the
review-3..
Code:-
#include <LiquidCrystal.h>
void setup() {
Serial.begin(9600);
lcd.begin(16, 2);
lcd.print("Automated Plant");
lcd.setCursor(0,1);
lcd.print("Watering System!");
pinMode(motor, OUTPUT);
pinMode(Red, OUTPUT);
pinMode(Green, OUTPUT);
delay(2000);
lcd.clear();
lcd.print("Temp= ");
lcd.setCursor(0,1);
lcd.print("Pump= ");
}
void loop() {
int value = analogRead(LM);
float Temperature = value * 500.0 / 1023.0;
lcd.setCursor(6,0);
lcd.print(Temperature);
lcd.setCursor(11,1);
if (Temperature > 40){
digitalWrite(motor, HIGH);
digitalWrite(Red, HIGH);
digitalWrite(Green, LOW);
lcd.print("ON ");
}
else {
digitalWrite(motor, LOW);
digitalWrite(Red, LOW);
digitalWrite(Green, HIGH);
lcd.print("OFF");
}
delay(1000);
}
● For code, we have included library called LiquidCrystal.
● Generally we have set the activation of the temperature sensor at 40
degree celsius.
● As soon as the outside temperature is 40 degree the water pump/dc
motor gets switch on and below 40 it gets switched off.
References :
1. Okokpujie, K.O., Noma-Osaghae, E., Odusami, M., John, S.N. and Oluga, O., 2018. A smart air
pollution monitoring system. International Journal of Civil Engineering and Technology (IJCIET), 9(9),
pp.799-809.
2. Pal, P., Gupta, R., Tiwari, S. and Sharma, A., 2017. IoT based air pollution monitoring system using
Arduino. International Research Journal of Engineering and Technology (IRJET), 4(10), pp.1137-
1140.
3. R. Nageswara Rao, B. Sridhar “IoT based smart crop-field monitoring and automation irrigation
system” International conference on inventive systems and control,2018
4. Hamoodi, S.A., Hamoodi, A.N. and Haydar, G.M., 2020. Automated irrigation system based on soil
moisture using an arduino board. Bulletin of Electrical Engineering and Informatics, 9(3), pp.870-876