Description
What it is
The MQ-9 sensor is a detection device for Arduino specifically designed to monitor the presence of carbon monoxide (CO) and methane (GPL) in domestic or industrial environments.
Features
- Detects carbon monoxide (CO)
- Detects methane (GPL)
What it is for
The MQ-9 sensor is ideal for projects that require measuring gas concentration in domestic or industrial environments. You can use it to build a domestic gas warning system by integrating the MQ-9 with Arduino.
Tutorial: How to use MQ-9
The MQ-9 sensor is ideal for measuring the concentration of carbon monoxide (CO) and methane (GPL) in your Arduino applications. Useful for domestic or industrial environments.
What you need
- Arduino Uno or compatible
- 10kΩ resistor
- Power cable
- Ground cable
- Data cable
Steps
- 1. Connect the 10kΩ resistor between the VCC of the sensor and the VCC of the Arduino (5V).
- 2. Connect the ground of the sensor to the GND of the Arduino.
- 3. Connect the A0 pin of the sensor to the A0 pin of the Arduino.
- 4. Load the example code onto your Arduino.
- 5. Wait 2 minutes for the auto-calibration of the sensor.
- 6. Read the CO and GPL values from the serial monitor.
- 7. Check the datasheet for further details.
- 8. Test the sensor in various environmental conditions.
Example code
void loop() {
int sensorValue = analogRead(A0);
float voltage = sensorValue * (5.0 / 1023.0);
Serial.print("V: ");
Serial.println(voltage);
}
Mini project
Build a domestic gas warning system in 30 minutes using the MQ-9 and an Arduino.
Common mistakes
- Do not wait long enough for the auto-calibration.
- Connect the sensor pins correctly.
- Use the correct resistor.
- Do not read the data immediately after connection.
Recommended accessories
- Arduino Uno
- 10kΩ Resistor
- Power cable
- Serial monitor
Frequently asked questions
Does the sensor work with other Arduinos?
Yes, it works with any compatible Arduino.
How long is the lifespan of the sensor?
Check the datasheet for the lifespan.
Which gases can it detect?
It mainly detects CO and propane (methane).
Does the sensor work in humid environments?
Check the datasheet for operating conditions.







Reviews
There are no reviews yet.