MQ-5 Gas Sensor Module

  • Detects LPG, methane, natural gas, and propane
  • Dual output: analog and digital signals
  • Operates at 5V with low power consumption
  • Adjustable sensitivity via onboard potentiometer
  • Fast response and recovery time
  • Compact and easy to integrate
SKU: EK532 Categories: , Tags: ,

Apple Shopping Event

Hurry and get discounts on all Apple devices up to 20%

80,00 EGP

8 People watching this product now!

Payment Methods:

Description

MQ-5 Gas Sensor Module

Description

The MQ-5 is a semiconductor gas sensor designed to detect various combustible gases such as LPG, natural gas, methane, and butane. It provides both analog and digital output signals, making it versatile for many applications.


Key Specifications

  • Operating Voltage: 5V DC

  • Heating Consumption: ≤ 800 mW

  • Load Resistance (RL): Adjustable

  • Heater Resistance (RH): 31 ±10 Ω

  • Sensing Resistance (Rs): 10–60 kΩ

  • Detection Range: 200–10,000 ppm for methane and propane

  • Response Time: Fast response and recovery

  • Sensitivity: High sensitivity to LPG, natural gas, and town gas; low sensitivity to alcohol and smoke


Features

  • Dual output: analog (0–5V) and digital TTL

  • Onboard potentiometer to adjust sensitivity

  • Indicator LEDs for power and digital output

  • Compact design suitable for integration


Important Notes

  • Requires a preheating time of over 24 hours for optimal accuracy

  • Calibration is recommended for precise gas concentration measurements


Applications

  • Gas leakage detection in homes and industry

  • Portable gas detectors

  • Educational and DIY gas sensing projects

🔌
Pin Connections
1 Table
Pin Connections Table 1
BoardSensor PinConnection
MQ-5VCC/GND/AOUT5V / GND / board analog pin (see per-board note)
📟
MQ-5 Gas Sensor Module
7 Examples • C/C++ | Boards: Arduino Uno, Arduino Nano, Arduino Mega, ESP32, ESP8266, STM32, Raspberry Pi Pico
MQ-5 Gas Sensor Module - Arduino Uno
MQ-5 Gas Sensor Module - Arduino Nano
MQ-5 Gas Sensor Module - Arduino Mega
MQ-5 Gas Sensor Module - ESP32
MQ-5 Gas Sensor Module - ESP8266
MQ-5 Gas Sensor Module - STM32
MQ-5 Gas Sensor Module - Raspberry Pi Pico
📄 File: mq-5_gas_sensor_module_-_arduino_uno.inoArduino Uno
585 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: A0 on Arduino Uno (ADC range 0-1023, reference 5.0V)
6#define MQ_PIN A0
7
8void setup() {
9 Serial.begin(115200);
10 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
11}
12
13void loop() {
14 int raw = analogRead(MQ_PIN);
15 float voltage = raw * 5.0 / 1023.0;
16
17 Serial.print("MQ-5 (LPG/natural gas) raw ADC: "); Serial.print(raw);
18 Serial.print(" Voltage: "); Serial.print(voltage);
19 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
20
21 delay(1000);
22}
📄 File: mq-5_gas_sensor_module_-_arduino_nano.inoArduino Nano
586 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: A0 on Arduino Nano (ADC range 0-1023, reference 5.0V)
6#define MQ_PIN A0
7
8void setup() {
9 Serial.begin(115200);
10 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
11}
12
13void loop() {
14 int raw = analogRead(MQ_PIN);
15 float voltage = raw * 5.0 / 1023.0;
16
17 Serial.print("MQ-5 (LPG/natural gas) raw ADC: "); Serial.print(raw);
18 Serial.print(" Voltage: "); Serial.print(voltage);
19 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
20
21 delay(1000);
22}
📄 File: mq-5_gas_sensor_module_-_arduino_mega.inoArduino Mega
586 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: A0 on Arduino Mega (ADC range 0-1023, reference 5.0V)
6#define MQ_PIN A0
7
8void setup() {
9 Serial.begin(115200);
10 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
11}
12
13void loop() {
14 int raw = analogRead(MQ_PIN);
15 float voltage = raw * 5.0 / 1023.0;
16
17 Serial.print("MQ-5 (LPG/natural gas) raw ADC: "); Serial.print(raw);
18 Serial.print(" Voltage: "); Serial.print(voltage);
19 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
20
21 delay(1000);
22}
📄 File: mq-5_gas_sensor_module_-_esp32.inoESP32
805 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: 34 on ESP32 (ADC range 0-4095, reference 3.3V)
6// SAFETY: this module can output up to 5V, but ESP32's ADC input max is 3.3V.
7// Power the module from the board's 3.3V pin instead of 5V, OR add a simple
8// resistor voltage divider on the analog output before wiring it in.
9#define MQ_PIN 34
10
11void setup() {
12 Serial.begin(115200);
13 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
14}
15
16void loop() {
17 int raw = analogRead(MQ_PIN);
18 float voltage = raw * 3.3 / 4095.0;
19
20 Serial.print("MQ-5 (LPG/natural gas) raw ADC: "); Serial.print(raw);
21 Serial.print(" Voltage: "); Serial.print(voltage);
22 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
23
24 delay(1000);
25}
📄 File: mq-5_gas_sensor_module_-_esp8266.inoESP8266
809 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: A0 on ESP8266 (ADC range 0-1023, reference 3.3V)
6// SAFETY: this module can output up to 5V, but ESP8266's ADC input max is 3.3V.
7// Power the module from the board's 3.3V pin instead of 5V, OR add a simple
8// resistor voltage divider on the analog output before wiring it in.
9#define MQ_PIN A0
10
11void setup() {
12 Serial.begin(115200);
13 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
14}
15
16void loop() {
17 int raw = analogRead(MQ_PIN);
18 float voltage = raw * 3.3 / 1023.0;
19
20 Serial.print("MQ-5 (LPG/natural gas) raw ADC: "); Serial.print(raw);
21 Serial.print(" Voltage: "); Serial.print(voltage);
22 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
23
24 delay(1000);
25}
📄 File: mq-5_gas_sensor_module_-_stm32.inoSTM32
807 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: PA0 on STM32 (ADC range 0-4095, reference 3.3V)
6// SAFETY: this module can output up to 5V, but STM32's ADC input max is 3.3V.
7// Power the module from the board's 3.3V pin instead of 5V, OR add a simple
8// resistor voltage divider on the analog output before wiring it in.
9#define MQ_PIN PA0
10
11void setup() {
12 Serial.begin(115200);
13 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
14}
15
16void loop() {
17 int raw = analogRead(MQ_PIN);
18 float voltage = raw * 3.3 / 4095.0;
19
20 Serial.print("MQ-5 (LPG/natural gas) raw ADC: "); Serial.print(raw);
21 Serial.print(" Voltage: "); Serial.print(voltage);
22 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
23
24 delay(1000);
25}
📄 File: mq-5_gas_sensor_module_-_raspberry_pi_pico.inoRaspberry Pi Pico
829 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: 26 on Raspberry Pi Pico (ADC range 0-4095, reference 3.3V)
6// SAFETY: this module can output up to 5V, but Raspberry Pi Pico's ADC input max is 3.3V.
7// Power the module from the board's 3.3V pin instead of 5V, OR add a simple
8// resistor voltage divider on the analog output before wiring it in.
9#define MQ_PIN 26
10
11void setup() {
12 Serial.begin(115200);
13 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
14}
15
16void loop() {
17 int raw = analogRead(MQ_PIN);
18 float voltage = raw * 3.3 / 4095.0;
19
20 Serial.print("MQ-5 (LPG/natural gas) raw ADC: "); Serial.print(raw);
21 Serial.print(" Voltage: "); Serial.print(voltage);
22 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
23
24 delay(1000);
25}
Analog LPG/natural gas sensor.

نظرة عامة ومواصفات المنتج — بالعربية

MQ-5 Gas Sensor Module متوفر الآن في متجر إكوسترا للإلكترونيات، ضمن قسم Gas and Dust Sensor وSensors، بسعر 80,00 EGP. كود المنتج لدينا: EK532. المنتج متوفر في المخزون وجاهز للشحن الفوري لكل محافظات مصر مع إمكانية الدفع عند الاستلام.

أهم المواصفات الفنية:

  • Product Name: MQ-5 Gas Sensor Module
  • Type: Gas Sensor Module
  • الموديل: MQ-5
  • Sensing Gas: LPG, Natural Gas, Town Gas, Methane
  • Operating Voltage: 5 V DC
  • Output Type: Analog and Digital
  • Detection Range: 200–10000 ppm (typical for LPG/CH4)
  • Heating Element: Built-in Heater for Gas Detection

هذا المنتج مناسب لمشاريع الأردوينو (Arduino) و ESP32 و Raspberry Pi، ومشاريع الروبوتات وإنترنت الأشياء والتعليم الهندسي. جميع القطع مفحوصة قبل الشحن.

تصفّح المزيد من Gas and Dust Sensor في إكوسترا.

Specification

Specification

WeightWeight6 g
Dimensions3,2 × 2,4 × 1,8 cm
Product NameMQ-5 Gas Sensor Module
TypeGas Sensor Module
ModelMQ-5
Sensing GasLPG, Natural Gas, Town Gas, Methane
Operating Voltage5 V DC
Output TypeAnalog and Digital
Detection Range200–10000 ppm (typical for LPG/CH4)
Heating ElementBuilt-in Heater for Gas Detection
Response Time<10 s (typical)
Operating Temperature-10°C to +50°C
MaterialPCB Module with Sensor and Components
ApplicationsGas Leakage Detection, Safety Alarms, Arduino / DIY Electronics, Home Automation, Industrial Gas Monitoring
Package Contents1× MQ-5 Gas Sensor Module

Customer Reviews