- All products
- Sensors & Modules
- Gas
- MQ 6 LP Gas (Propane/Butane) Sensor RobotDYN
- Gas
Features:
- High sensitivity to LPG, iso-butane, and propane
- Good sensitivity to combustible gases in a wide range
- Fast response time
- Long life
- Low cost
- Simple drive circuit
- Concentration detection range: 200–10,000 ppm
- Preheat duration: 20 seconds
- Digital or analog output
- Adjustable digital output threshold via potentiometer
Principle of Work:
When powered with 5V, the module's LED is off and the digital pin reads 0V in clean air. After a preheat period, gas exposure increases conductivity. The digital pin goes HIGH (5V) when the gas concentration exceeds the set threshold, while the analog pin provides a voltage proportional to gas concentration. Readings can be monitored with a microcontroller.
Pinout:

| Pin No | Pin Name | Description |
|---|---|---|
| 1 | VCC | Power supply, typically +5V |
| 2 | Ground | Connect to system ground |
| 3 | Digital Out | Outputs HIGH when gas exceeds threshold; threshold adjustable via potentiometer |
| 4 | Analog Out | Analog voltage (0–5V) proportional to gas concentration |
Applications:
- LPG Gas Leakage Detectors: Protect kitchens or environments using LPG by detecting leaks.
- Gas Leakage Alarms: Integrated into alarms to provide warnings for flammable gas presence.
- Air Quality Monitoring: Combined with IoT systems to monitor ventilation and gas concentration.
Circuit:

Connect VCC to Arduino +5V, GND to Arduino GND, and A0 to Arduino analog pin A0. Monitor the analog and digital outputs via the Serial Monitor.
Library:
No library is required to use the RobotDYN MQ6 sensor.
Example Arduino Code:
#define MQ6pin A0
float sensorValue;
void setup() {
pinMode(13, OUTPUT);
Serial.begin(9600);
Serial.println("RobotDYN MQ6 warming up!");
delay(20000); // Allow the sensor to warm up
}
void loop() {
sensorValue = analogRead(MQ6pin); // read analog input
Serial.print("Sensor Value: ");
Serial.println(sensorValue);
if(sensorValue > 400){
digitalWrite(13, HIGH); // turn on LED
} else {
digitalWrite(13, LOW); // turn off LED
}
delay(2000); // wait 2 seconds
}
Technical Details:
- Operating Voltage: 5V
- Operating Current: 150mA
- Operating Temperature: -10°C to 50°C
- Detection Concentration: 300–10,000 ppm
- Digital Output Voltage: TTL 0–5V
- Analog Output Voltage: 0.1–4V depending on gas concentration
- PCB Size: 38 x 24 mm
Comparisons:
The MQ series gas sensors are widely used for detecting specific gases. The MQ6 sensor is ideal for LPG detection and butane gas, while the MQ5 is preferred for natural gas and LPG. The MQ6's 300–10,000 ppm detection range makes it suitable for home gas safety applications.
Features:
- High sensitivity to LPG, iso-butane, and propane
- Good sensitivity to combustible gases in a wide range
- Fast response time
- Long life
- Low cost
- Simple drive circuit
- Concentration detection range: 200–10,000 ppm
- Preheat duration: 20 seconds
- Digital or analog output
- Adjustable digital output threshold via potentiometer
Principle of Work:
When powered with 5V, the module's LED is off and the digital pin reads 0V in clean air. After a preheat period, gas exposure increases conductivity. The digital pin goes HIGH (5V) when the gas concentration exceeds the set threshold, while the analog pin provides a voltage proportional to gas concentration. Readings can be monitored with a microcontroller.
Pinout:

| Pin No | Pin Name | Description |
|---|---|---|
| 1 | VCC | Power supply, typically +5V |
| 2 | Ground | Connect to system ground |
| 3 | Digital Out | Outputs HIGH when gas exceeds threshold; threshold adjustable via potentiometer |
| 4 | Analog Out | Analog voltage (0–5V) proportional to gas concentration |
Applications:
- LPG Gas Leakage Detectors: Protect kitchens or environments using LPG by detecting leaks.
- Gas Leakage Alarms: Integrated into alarms to provide warnings for flammable gas presence.
- Air Quality Monitoring: Combined with IoT systems to monitor ventilation and gas concentration.
Circuit:

Connect VCC to Arduino +5V, GND to Arduino GND, and A0 to Arduino analog pin A0. Monitor the analog and digital outputs via the Serial Monitor.
Library:
No library is required to use the RobotDYN MQ6 sensor.
Example Arduino Code:
#define MQ6pin A0
float sensorValue;
void setup() {
pinMode(13, OUTPUT);
Serial.begin(9600);
Serial.println("RobotDYN MQ6 warming up!");
delay(20000); // Allow the sensor to warm up
}
void loop() {
sensorValue = analogRead(MQ6pin); // read analog input
Serial.print("Sensor Value: ");
Serial.println(sensorValue);
if(sensorValue > 400){
digitalWrite(13, HIGH); // turn on LED
} else {
digitalWrite(13, LOW); // turn off LED
}
delay(2000); // wait 2 seconds
}
Technical Details:
- Operating Voltage: 5V
- Operating Current: 150mA
- Operating Temperature: -10°C to 50°C
- Detection Concentration: 300–10,000 ppm
- Digital Output Voltage: TTL 0–5V
- Analog Output Voltage: 0.1–4V depending on gas concentration
- PCB Size: 38 x 24 mm
Comparisons:
The MQ series gas sensors are widely used for detecting specific gases. The MQ6 sensor is ideal for LPG detection and butane gas, while the MQ5 is preferred for natural gas and LPG. The MQ6's 300–10,000 ppm detection range makes it suitable for home gas safety applications.

