0% found this document useful (0 votes)
18 views12 pages

Exp 5 IOT Merged

The document outlines an experiment in an IoT lab aimed at designing a weather station to monitor air quality using the MQ-135 sensor. It details the hardware required, the procedure for connecting the sensor to an Arduino, and the implementation of code for data monitoring. The learning outcomes emphasize IoT integration, real-time data processing, and environmental awareness.

Uploaded by

Mitesh Chaudhary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views12 pages

Exp 5 IOT Merged

The document outlines an experiment in an IoT lab aimed at designing a weather station to monitor air quality using the MQ-135 sensor. It details the hardware required, the procedure for connecting the sensor to an Arduino, and the implementation of code for data monitoring. The learning outcomes emphasize IoT integration, real-time data processing, and environmental awareness.

Uploaded by

Mitesh Chaudhary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

DEPARTMENT OF

COMPUTER SCIENCE &


ENGINEERING
Experiment - 5

Student Name:Mitesh UID: 22BCS15619


Branch:CSE Section/Group: 621 - B
Semester: 5 Date of Performance: 10/9/24
Subject Name: IOT LAB Subject Code: 22CSP-329

1. Aim:

To Design a weather station by checking Air quality of an environment with the help of IoT.

2. Objective:
The objective of this experiment is to use the MQ-135 sensor to detect and monitor the
concentration of harmful gases in the air. By analyzing the sensor's analog output, the experiment
aims to assess air quality and identify potential contamination. This helps in determining
environmental safety and necessary precautions.

3. Hardware Required:

1. Arduino Uno R3
2. MQ 135 Air Quality Sensor Module
3. Male to Female Jumper Wire
4. Software: Arduino IDE

4. Introduction:

About Air Quality Sensor:


MQ-135 sensor belongs to the MQ series that are used to detect different gasses present in the air.
The MQ-135 sensor is used to detect gases such as NH3,NOx, alcohol, Benzene, smoke,C02 ,etc.
steel exoskeleton houses a sensing device within the gas sensor module.
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING

The MQ-135 air quality sensor is a versatile device used for detecting a range of gases in the
environment, including ammonia (NH3), nitrogen oxides (NOx), alcohol, benzene, smoke, and carbon
dioxide (CO2). The sensor provides an analog output that corresponds to the concentration of these
gases in the air. This output can be read by a microcontroller, like an Arduino, to assess air quality.

If the sensor readings stay within the normal range, the air quality can be considered safe. However, if
the readings rise significantly, it suggests the presence of potentially harmful substances, and
appropriate actions should be taken to ensure safety. This makes the MQ-135 sensor a useful tool for
monitoring air quality in various settings.

5. Procedure:

 Connect MQ-135 VCC to Arduino 5V.


 Connect MQ-135 GND to Arduino GND.
 Connect MQ-135 AOUT to Arduino analog pin (e.g., A0).
 Connect MQ-135 DOUT to Arduino digital pin (optional, e.g., D2).
 Upload code to Arduino and monitor sensor data via
 Serial Monitor
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING
Connections:

o VCC to 5V: Connect the MQ-135 VCC pin to the Arduino 5V pin to power the sensor.
o GND to GND: Connect the MQ-135 GND pin to the Arduino GND pin for a common ground.
o AO to A0: Connect the MQ-135 AO (Analog Output) pin to the Arduino analog pin A0 to
read analog sensor values.
o DO to Pin 2: Connect the MQ-135 DO (Digital Output) pin to Arduino digital pin 2 to use
the digital output if needed.
o Common Ground: Ensure that both the MQ-135 sensor and Arduino share a common
ground connection.
o Follow the Diagram: Refer to the connection diagram for accurate wiring between the MQ-
135 module and Arduino.

6. Implementation:

int sensorValue;
int digitalValue;
void setup()
{
Serial.begin(9600); // sets the serial port to
9600 pinMode(13, OUTPUT);
pinMode(2, INPUT);
}
void loop()
{
sensorValue = analogRead(0); // read analog input pin
0 digitalValue = digitalRead(2);
if (sensorValue > 400)
{
digitalWrite(13, HIGH);
}
else
digitalWrite(13, LOW);
Serial.println(sensorValue, DEC); // prints the value
read Serial.println(digitalValue, DEC);
delay(1000); // wait 100ms for next reading
}
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING

Circuit Diagram:

7. Learning Outcomes:

Learn IoT Integration and Sensor


Utilization. Real-Time Data Monitoring and
Processing.
Environmental Impact Awareness and Smart Solutions.
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING
Experiment - 5

Student Name:Yash Kashyap UID: 22BCS15658


Branch:CSE Section/Group: 621 - B
Semester: 5 Date of Performance: 10/9/24
Subject Name: IOT LAB Subject Code: 22CSP-329

1. Aim:

To Design a weather station by checking Air quality of an environment with the help of IoT.

2. Objective:
The objective of this experiment is to use the MQ-135 sensor to detect and monitor the
concentration of harmful gases in the air. By analyzing the sensor's analog output, the experiment
aims to assess air quality and identify potential contamination. This helps in determining
environmental safety and necessary precautions.

3. Hardware Required:

1. Arduino Uno R3
2. MQ 135 Air Quality Sensor Module
3. Male to Female Jumper Wire
4. Software: Arduino IDE

4. Introduction:

About Air Quality Sensor:


MQ-135 sensor belongs to the MQ series that are used to detect different gasses present in the air.
The MQ-135 sensor is used to detect gases such as NH3,NOx, alcohol, Benzene, smoke,C02 ,etc.
steel exoskeleton houses a sensing device within the gas sensor module.
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING

The MQ-135 air quality sensor is a versatile device used for detecting a range of gases in the
environment, including ammonia (NH3), nitrogen oxides (NOx), alcohol, benzene, smoke, and carbon
dioxide (CO2). The sensor provides an analog output that corresponds to the concentration of these
gases in the air. This output can be read by a microcontroller, like an Arduino, to assess air quality.

If the sensor readings stay within the normal range, the air quality can be considered safe. However, if
the readings rise significantly, it suggests the presence of potentially harmful substances, and
appropriate actions should be taken to ensure safety. This makes the MQ-135 sensor a useful tool for
monitoring air quality in various settings.

5. Procedure:

 Connect MQ-135 VCC to Arduino 5V.


 Connect MQ-135 GND to Arduino GND.
 Connect MQ-135 AOUT to Arduino analog pin (e.g., A0).
 Connect MQ-135 DOUT to Arduino digital pin (optional, e.g., D2).
 Upload code to Arduino and monitor sensor data via
 Serial Monitor
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING
Connections:

o VCC to 5V: Connect the MQ-135 VCC pin to the Arduino 5V pin to power the sensor.
o GND to GND: Connect the MQ-135 GND pin to the Arduino GND pin for a common ground.
o AO to A0: Connect the MQ-135 AO (Analog Output) pin to the Arduino analog pin A0 to
read analog sensor values.
o DO to Pin 2: Connect the MQ-135 DO (Digital Output) pin to Arduino digital pin 2 to use
the digital output if needed.
o Common Ground: Ensure that both the MQ-135 sensor and Arduino share a common
ground connection.
o Follow the Diagram: Refer to the connection diagram for accurate wiring between the MQ-
135 module and Arduino.

6. Implementation:

int sensorValue;
int digitalValue;
void setup()
{
Serial.begin(9600); // sets the serial port to
9600 pinMode(13, OUTPUT);
pinMode(2, INPUT);
}
void loop()
{
sensorValue = analogRead(0); // read analog input pin
0 digitalValue = digitalRead(2);
if (sensorValue > 400)
{
digitalWrite(13, HIGH);
}
else
digitalWrite(13, LOW);
Serial.println(sensorValue, DEC); // prints the value
read Serial.println(digitalValue, DEC);
delay(1000); // wait 100ms for next reading
}
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING

Circuit Diagram:

7. Learning Outcomes:

Learn IoT Integration and Sensor


Utilization. Real-Time Data Monitoring and
Processing.
Environmental Impact Awareness and Smart Solutions.
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING
Experiment - 5

Student Name:Deepak Kumar UID: 22BCS15670


Branch: CSE Section/Group: 621 - B
Semester: 5 Date of Performance: 10/9/24
Subject Name: IOT LAB Subject Code: 22CSP-329

1. Aim:

To Design a weather station by checking Air quality of an environment with the help of IoT.

2. Objective:
The objective of this experiment is to use the MQ-135 sensor to detect and monitor the
concentration of harmful gases in the air. By analyzing the sensor's analog output, the experiment
aims to assess air quality and identify potential contamination. This helps in determining
environmental safety and necessary precautions.

3. Hardware Required:

1. Arduino Uno R3
2. MQ 135 Air Quality Sensor Module
3. Male to Female Jumper Wire
4. Software: Arduino IDE

4. Introduction:

About Air Quality Sensor:


MQ-135 sensor belongs to the MQ series that are used to detect different gasses present in the air.
The MQ-135 sensor is used to detect gases such as NH3,NOx, alcohol, Benzene, smoke,C02 ,etc.
steel exoskeleton houses a sensing device within the gas sensor module.
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING

The MQ-135 air quality sensor is a versatile device used for detecting a range of gases in the
environment, including ammonia (NH3), nitrogen oxides (NOx), alcohol, benzene, smoke, and carbon
dioxide (CO2). The sensor provides an analog output that corresponds to the concentration of these
gases in the air. This output can be read by a microcontroller, like an Arduino, to assess air quality.

If the sensor readings stay within the normal range, the air quality can be considered safe. However, if
the readings rise significantly, it suggests the presence of potentially harmful substances, and
appropriate actions should be taken to ensure safety. This makes the MQ-135 sensor a useful tool for
monitoring air quality in various settings.

5. Procedure:

 Connect MQ-135 VCC to Arduino 5V.


 Connect MQ-135 GND to Arduino GND.
 Connect MQ-135 AOUT to Arduino analog pin (e.g., A0).
 Connect MQ-135 DOUT to Arduino digital pin (optional, e.g., D2).
 Upload code to Arduino and monitor sensor data via
 Serial Monitor
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING
Connections:

o VCC to 5V: Connect the MQ-135 VCC pin to the Arduino 5V pin to power the sensor.
o GND to GND: Connect the MQ-135 GND pin to the Arduino GND pin for a common ground.
o AO to A0: Connect the MQ-135 AO (Analog Output) pin to the Arduino analog pin A0 to
read analog sensor values.
o DO to Pin 2: Connect the MQ-135 DO (Digital Output) pin to Arduino digital pin 2 to use
the digital output if needed.
o Common Ground: Ensure that both the MQ-135 sensor and Arduino share a common
ground connection.
o Follow the Diagram: Refer to the connection diagram for accurate wiring between the MQ-
135 module and Arduino.

6. Implementation:

int sensorValue;
int digitalValue;
void setup()
{
Serial.begin(9600); // sets the serial port to
9600 pinMode(13, OUTPUT);
pinMode(2, INPUT);
}
void loop()
{
sensorValue = analogRead(0); // read analog input pin
0 digitalValue = digitalRead(2);
if (sensorValue > 400)
{
digitalWrite(13, HIGH);
}
else
digitalWrite(13, LOW);
Serial.println(sensorValue, DEC); // prints the value
read Serial.println(digitalValue, DEC);
delay(1000); // wait 100ms for next reading
}
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING

Circuit Diagram:

7. Learning Outcomes:

Learn IoT Integration and Sensor


Utilization. Real-Time Data Monitoring and
Processing.
Environmental Impact Awareness and Smart Solutions.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy