
We have 4 different Gas Sensors on our web shop: MQ-2, MQ-3, MQ-7 and MQ-135.
All they work on same principle: sensor element is heated and it’s conductivity change with the gas concentration.
The heater require 5V and have 31 ohm resistance, so your power supply should provide 200mA of current for the sensor.
Sensor have both analog and digital output, the analog output is 0-5V, the digital output is frequency related to the output value.
MQ-2 is sensor of LPG, Propane, Methane and Hydrogen gas and can be used for domestic gas leak alarms
MQ-3 is sensor of Alcohol and Benzine and can be used for breath analizer
MQ-7 is sensor of Carbon monoxide CO and can be used for car gases analizer
MQ-135 is sensor of NH3, NOx, Alcohol, Benzine, Smoke, CO2 and can be used for quality of air analizer
We did some experiments today with all four sensors connecting them to OLIMEXINO-32U4 (Arduino Leonardo compatible).
The sensors have 4 pins: AO – Analog Output, DO – Digital output, GND, VCC-5V

OLIMEXINO-32U4 should be switched to work on 5V.
Three wires are used: AO from sensor to A0 of Arduino, VCC from sensor to 5V, GND from sensor to GND of Arduino.
The sketch is simple:
int sensorPin = A0;
int sensorValue = 0;
void setup() {
Serial.begin(9600);
pinMode(sensorPin, INPUT);
}
void loop() {
sensorValue = analogRead(sensorPin);
Serial.println(sensorValue);
}
It reads the sensor value and print it on Serial terminal.
Note that when sensor are power up they need about 1 minute to settle, in this time the heater heats up the sensor.
We experimented with Isopropile alcohol, Benzine, Lighter Gas, human breath of two different persons 🙂
Here is the measured data:
MQ-2 normal air output 100
Isopropile alcohol 540
Ligther Gas 760
Benzine 450
Breath1 150
Breath2 140
MQ-3 normal air output 180
Isopropile alcohol 800
Lighter Gas 400
Benzine 700
Breath1 220
Breath2 270
MQ-7 normal air output 150
Isopropile alcohol 750
Lighter Gas 900
Benzine 800
Breath1 170
Breath2 160
MQ-135 normal air output 130
Isopropile alcohol 700
Lighter Gas 760
Benzine 450
Breath1 150
Breath2 140
the results are:
MQ-2 shows good sensibility to Lighter Gas
MQ-3 detects well Isopropile alcohol and Benzine
MQ-7 detects well Isopropile alcohol, Lighter gas and Benzine
MQ-135 detects well Isopropile alcohol, Lighter gas
Recent Comments