Project showcase
Arduino And MQ 135 Gas Sensor With Arduino Code

Arduino And MQ 135 Gas Sensor With Arduino Code © CC0

In this project, I have measured the components of air.

  • 25,149 views
  • 3 comments
  • 13 respects

Components and supplies

MQ 135 Gas Sensor
×1
A000066 iso both
Arduino UNO & Genuino UNO
×1

About this project

Video tutorial

Code

Arduino CodeArduino
#include <LiquidCrystal.h>
int sensorValue;
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup(){  lcd.begin(16, 2);
Serial.begin(9600);                            // sets the serial port to 9600
 }
void loop(){sensorValue = analogRead(0);       // read analog input pin 0
Serial.print("AirQua=");
Serial.print(sensorValue, DEC);               // prints the value read
Serial.println(" PPM");
lcd.setCursor(0,0);
lcd.print("ArQ=");
lcd.print(sensorValue,DEC);
lcd.print(" PPM");
lcd.println("       "); 
lcd.print("  ");
delay(100);                                   // wait 100ms for next reading
}

Schematics

Circuit Diagram
3 wiring azybmywxxg

Comments

Similar projects you might like

Arduino And MQ2 Gas Sensor

Project showcase by Mahamudul Karim Khondaker

  • 4,444 views
  • 6 comments
  • 13 respects

Smoke Detection using MQ-2 Gas Sensor

by Aritro Mukherjee

  • 213,116 views
  • 36 comments
  • 133 respects

MQ-4 Natural Gas Sensor Experiment Based on Arduino

Project tutorial by Andrew85

  • 1,489 views
  • 1 comment
  • 7 respects

Complete Digital Clock Including Alarm and Motion Sensor

Project tutorial by LAGSILVA

  • 12,677 views
  • 11 comments
  • 50 respects

DHT11 Humidity + Temperature Sensor with 16x2 LCD display

Project showcase by onatto22

  • 9,056 views
  • 1 comment
  • 17 respects
Add projectSign up / Login