
What is an mQ2 gas sensor?
MQ2 gas sensor is an electronic sensor used for sensing the concentration of gases in the air such as LPG, propane, methane, hydrogen, alcohol, smoke and carbon monoxide. MQ2 gas sensor is also known as chemiresistor. It contains a sensing material whose resistance changes when it comes in contact with the gas.
What is the use of ppm sensor without module?
But if ppm has to be calculated then the sensor should be used without module. This sensor is also used for Air quality monitoring, Gas leak alarm and for maintaining environmental standards in hospitals. In industries, these are used to detect the leakage of harmful gases.
What is the purpose of the mesh inside the sensor?
It ensures that heater element inside the sensor will not cause an explosion, as we are sensing flammable gases. It also provides protection for the sensor and filters out suspended particles so that only gaseous elements are able to pass inside the chamber. The mesh is bound to rest of the body via a copper plated clamping ring.
What is MQ2 sensor?
How many watts does a MQ2 gas sensor draw?
How does a gas sensor work?
How to connect MQ2 sensor to Arduino?
How many legs does a Bakelite sensor have?
What is tubular sensing element?
What is an in loop function?
See 2 more

How does mq6 gas sensor work?
The MQ-6 can detect gas concentrations anywhere from 200 to 10000ppm. This sensor has a high sensitivity and fast response time. The sensor's output is an analog resistance. The drive circuit is very simple; all you need to do is power the heater coil with 5V, add a load resistance, and connect the output to an ADC.
What does mq5 sensor detect?
MQ-5 gas sensor has high sensitivity to butane, propane, methane and can detect methane and propane at the same time. It also can detect kinds of flammable gases, especially LPG(propane). It is a kind of low–cost sensor for many applications.
What does MQ9 sensor detect?
The Grove - Gas Sensor(MQ9) module is useful for gas leakage detection (in home and industry). It is suitable for detecting LPG, CO, CH4. Due to its high sensitivity and fast response time, measurements can be taken as soon as possible.
How does mq135 gas sensor work?
The MQ-135 Gas sensor can detect gases like Ammonia (NH3), sulfur (S), Benzene (C6H6), CO2, and other harmful gases and smoke. Similar to other MQ series gas sensor, this sensor also has a digital and analog output pin. When the level of these gases go beyond a threshold limit in the air the digital pin goes high.
What can MQ2 detect?
The MQ2 gas sensor can easily detect smoke, liquefied natural gas (LNG), butane, propane, methane, alcohol, and hydrogen in the air.
What is the range of MQ5 sensor?
300PPM to 10000PPMThis MQ sensor is sensitive to specific gasses like LPG, Butane, Methane, Alcohol, Hydrogen, and smoke with a detection range of 300PPM to 10000PPM. It is 5V powered.
What does MQ stand for in mq9?
multi-roleThe "M" is the DoD designation for multi-role, and "Q" means remotely piloted aircraft system. The "9" indicates it is the ninth in the series of remotely piloted aircraft systems.
How long can an mq9 fly?
Featuring unmatched operational flexibility, MQ-9A has an endurance of over 27 hours, speeds of 240 KTAS, can operate up to 50,000 feet, and has a 3,850 pound (1746 kilogram) payload capacity that includes 3,000 pounds (1361 kilograms) of external stores.
How does ultrasonic sensor detect objects?
It sends an ultrasonic pulse out at 40kHz which travels through the air and if there is an obstacle or object, it will bounce back to the sensor. By calculating the travel time and the speed of sound, the distance can be calculated. Ultrasonic sensors are a great solution for the detection of clear objects.
What is the difference between MQ2 and MQ135?
(Gas leak monitoring devices for homes and factories, suitable for detection of liquefied gases, butane, propane, methane, alcohol, hydrogen, fumes, etc.) MQ135: The gas sensitive material used in the MQ135 gas sensor is tin dioxide (SnO2) with lower conductivity in clean air.
How do MQ gas sensors work?
MQ2 is a metal oxide semiconductor type gas sensor. Concentrations of gas in the gas is measured using a voltage divider network present in the sensor. This sensor works on 5V DC voltage. It can detect gases in the concentration of range 200 to 10000ppm.
What is the principle of gas sensor?
Gas sensors work on the principle of transforming the gas adsorption effects on the surface of the active material into a detectable signal in terms of its changed electrical, optical, thermal, mechanical, magnetic (magnetization and spin), and piezoelectric properties.
How does MQ 7 sensor work?
It make detection by method of cycle high and low temperature, and detect CO when low temperature (heated by 1.5V). The sensor's conductivity is more higher along with the gas concentration rising. When high temperature (heated by 5.0V), it cleans the other gases adsorbed under low temperature.
How does the MQ2 differ from the MQ5?
MQ2 can sense methane(CH4) upto 20000 ppm where as MQ5 can sense CH4 only upto 10000 ppm. The difference between MQ5 and MQ2 therefore lies in its range of values.
How does MQ 3 sensor work?
Metal oxide sensors are also known as Chemiresistors because sensing is based on the change in resistance of the sensing material when exposed to alcohol. The MQ3 alcohol sensor operates on 5V DC and consumes approximately 800mW. It can detect alcohol concentrations ranging from 25 to 500 ppm.
Which sensor is used to detect presence?
The Passive Infrared (PIR) sensor is used to detect the presence of human.
What is an MQ2 Gas Sensor?
MQ2 gas sensor is an electronic sensor used for sensing the concentration of gases in the air such as LPG, propane, methane, hydrogen, alcohol, smoke and carbon monoxide.
What is a sensor?
Sensors are the electronic devices used for interaction with the outer environment. There are various types of sensors available that can detect light, noise, smoke, proximity etc…. With the advent in technology, these are available as both analog and digital forms.
What is a gas leak sensor used for?
This sensor is also used for Air quality monitoring, Gas leak alarm and for maintaining environmental standards in hospitals. In industries, these are used to detect the leakage of harmful gases.
How many legs does a sensing element have?
Sensing element has six connecting legs attached to it. Two leads are responsible for heating the sensing element, the other four are used for output signals. Oxygen gets adsorbed on the surface of sensing material when it is heated in air at high temperature.
Why are sensors important?
Besides forming a communication with the outer environment, sensors are also a crucial part of safety systems. Fire sensors are used to detect the fire and take appropriate precautions on time. For smooth functioning of control systems and sensitive electronics, humidity sensors are used for maintaining humidity in the unit.
Can a gas sensor tell which gas it is?
Thus, they cannot tell which gas it is. Module version of this sensor can be used without interfacing to any microcontroller and is useful when detecting only one particular gas. This can only detect the gas. But if ppm has to be calculated then the sensor should be used without module.
What is a smoke sensor?
The smoke sensor has a built-in potentiometer that allows you to adjust the sensor digital output (D0) threshold. This threshold sets the value above which the digital pin will output a HIGH signal.
Where to set threshold on a sensor?
You should set the threshold value by using the potentiometer at the back of the sensor .
When to use a lighter to measure gas?
You need to measure the gas levels when there isn’t gas on the atmosphere and then, you can use a lighter to simulate gas on the atmosphere and see how the values change. Your threshold value should be between those two readings (reading without gas and reading with gas)
What is the MQ-2 smoke sensor?
The MQ-2 smoke sensor is sensitive to smoke and to the following flammable gases: The resistance of the sensor is different depending on the type of the gas. The smoke sensor has a built-in potentiometer that allows you to adjust the sensor sensitivity according to how accurate you want to detect gas.
How does it Work?
The voltage that the sensor outputs changes accordingly to the smoke/gas level that exists in the atmosphere . The sensor outputs a voltage that is proportional to the concentration of smoke/gas.
What is a MQ2 gas sensor?
The MQ2 gas sensor is used for detecting the levels of various gases around the area, so you can utilize this sensor as a gas leak monitoring system , in fire alarms and air quality monitoring for homes, businesses or factories.
What pins are used for MQ2 sensor?
The mq2 gas sensor is connected to the Arduino board as shown in the schematic below. Pins AO and DO of the sensor are connected to Arduino pins A0 and 8 respectively.
How long does an Arduino sensor stay dormant?
When this code is uploaded to the Arduino board, the sensor will have to first stay dormant for about 20 minutes during which time the sensing material is being warmed up.
What is the sensor element made of?
The sensing element is made of mainly aluminium-oxide based ceramic, coated with Tin dioxide, enclosed in a stainless steel mesh. This tutorial is mainly for showing the physical features of this sensor and how to connect it to the Arduino.
What happens when a digital pin goes past the threshold?
When it goes past the threshold, the digital pin (D0) will go HIGH. The major downside of this sensor is that it only senses the concentration of gases in the air such as LPG, propane, methane, hydrogen, alcohol, smoke and carbon monoxide. However it can not distinguish among the different types of gases. For that you may need other types of gas ...
Story
In this example, you will read the sensor analog output voltage and when the smoke reaches a certain level, it will make sound a buzzer and a red LED will turn on.
Code
After setting up the hardware components properly, flash this code into your Arduino.
Credits
Associate Developer @ Altimetrik. B.Tech (Electrical Engineering) Enthusiastic about IOT , Robotics and Automation technologies
What is MQ2 sensor?
MQ2 is one of the commonly used gas sensors in MQ sensor series. It is a Metal Oxide Semiconductor (MOS) type Gas Sensor also known as Chemiresistors as the detection is based upon change of resistance of the sensing material when the Gas comes in contact with the material. Using a simple voltage divider network, concentrations of gas can be detected.
How many watts does a MQ2 gas sensor draw?
MQ2 Gas sensor works on 5V DC and draws around 800mW. It can detect LPG, Smoke, Alcohol, Propane, Hydrogen, Methane and Carbon Monoxide concentrations anywhere from 200 to 10000ppm.
How does a gas sensor work?
When tin dioxide (semiconductor particles) is heated in air at high temperature, oxygen is adsorbed on the surface. In clean air, donor electrons in tin dioxide are attracted toward oxygen which is adsorbed on the surface of the sensing material. This prevents electric current flow.
How to connect MQ2 sensor to Arduino?
Start by placing the sensor on to your breadboard. Connect VCC pin to the 5V pin on the Arduino and connect GND pin to the Ground pin on the Arduino.
How many legs does a Bakelite sensor have?
This is how the sensor looks like when outer mesh is removed. The star-shaped structure is formed by the sensing element and six connecting legs that extend beyond the Bakelite base. Out of six, two leads ( H) are responsible for heating the sensing element and are connected through Nickel-Chromium coil, well known conductive alloy.
What is tubular sensing element?
The tubular sensing element is made up of Aluminum Oxide (AL 2 O 3) based ceramic and has a coating of Tin Dioxide (SnO 2 ). The Tin Dioxide is the most important material being sensitive towards combustible gases. However, the ceramic substrate merely increases heating efficiency and ensures the sensor area is heated to a working temperature constantly.
What is an in loop function?
In loop function: the sensor value is read by analogRead () function and displayed on serial monitor.

The MQ-2 Gas Sensor
How Does It Work?
- The voltage that the sensor outputs changes accordingly to the smoke/gas level that exists in the atmosphere. The sensor outputs a voltage that is proportional to the concentration of smoke/gas. In other words, the relationship between voltage and gas concentration is the following: 1. The greater the gas concentration, the greaterthe output voltage 2. The lower the gas concentration, …
Example: Gas Sensor with Arduino
- In this example, you will read the sensor analog output voltage and when the smoke reaches a certain level, it will make sound a buzzer and a red LED will turn on. When the output voltage is below that level, a green LED will be on.
Code
- Upload the following sketch to your Arduino board (feel free to adjust the variable sensorThreswith a different threshold value): View raw code
Video Demonstration
- Watch this quick video demonstration to see this project in action: I hope you found this guide useful. Share this post with a friend that also likes electronics! You can contact me by leaving a comment. If you like this post probably you might like my next ones (click here to subscribe my blog). Thanks for reading, -Rui Santos