Surilli
Published © GPL3+

Integrate Surilli Basic M0 with MQ135 Gas Sensor Module

Visualize the changing values of air quality using Surilli Basic M0 and MQ135 Gas Sensor Module.

BeginnerFull instructions provided15 minutes250
Integrate Surilli Basic M0 with MQ135 Gas Sensor Module

Things used in this project

Hardware components

Surilli Basic
Surilli Basic
×1
MQ135 Gas Sensor
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Surilli Basic M0 with MQ135 Gas Sensor Module

Code

M0_MQ135

C/C++
int sensorValue;

void setup()

{  
  
     SerialUSB.begin(9600);                            // Set the serial port to 9600
  
}

void loop()

{
    sensorValue = analogRead(0);                      // Read analog input pin A0
    SerialUSB.print("AirQua=");
    SerialUSB.print(sensorValue, DEC);                // Prints the value read
    SerialUSB.println(" PPM");
    delay(1000);                                      // Wait 1000ms for next reading
    
}

Credits

Surilli

Surilli

196 projects • 47 followers
Surilli is a premiere Internet of Things centric Technology Company aimed at providing cutting edge innovative solutions.

Comments