QB055/QB084 MQ-4 Gas Sensor

1.Product Introduction

../../_images/MQ-4-1.jpg

MQ-4 gas sensor is a combustible gas sensor, which can detect the concentration of combustible gas in the environment. Its working principle is based on the change of electrical properties of semiconductor gas sensitive materials. When there is combustible gas (such as methane, propane, butane, etc.), the gas sensitive materials inside the sensor will react with the gas, resulting in changes in the resistance value of the material.

It is widely used in domestic and industrial fields in methane leakage detection, gas leakage alarm and gas detection.

2.Parameter Specification

Parameter Value/Representation
Operating voltage 5V
Operating temperature -20°C~+80°C
Concentration detection 300~10000ppm
Output signal Analog signal
Size 4.72cm*2.38cm
../../_images/MQ-4-2.jpg

3.Wiring Diagram

../../_images/MQ-4-3.png
MQ-4 Gas Sensor UNO
VCC 5V
GND GND
S Analog Pin A0

4.Sample Code

1void setup(){
2  pinMode(A0, INPUT);//Set pin A0 to input mode
3  Serial.begin(9600);//Set serial port baud rate 9600
4}
5void loop(){
6  Serial.println(analogRead(A0));//The serial port shows the detection value of the MQ-4 gas sensor
7  delay(1000);
8}

5.Test Result

After uploading the code to the controller board, open the serial port monitor of the Arduino IDE, set the baud rate to 9600, and switch to the scroll mode. When pressed half with a lighter, flammable gas will be released. At this time, the gas will be sprayed to the MQ-4 gas sensor, and the following data can be seen.

../../_images/MQ-4-4.png
../../_images/MQ-4-5.png

Hint

The MQ-4 gas sensor will be heated at the beginning, and it will be 20 seconds before normal detection.

6.Related Resources

PDF and Code

7.Get One Now

B2B Business: info@acebott.com

Related posts

Leave the first comment

Apply for a Free Trial

This product trial is prioritized for educators and academic institutions.

By filling out and submitting this form, you agree to the
Acebott Product Trial Terms and Conditions.

Unlock Your Exclusive Education Discount Today

Fill out this form to apply for special discounts tailored for educators and institutions. Enjoy at least 5% off on our STEM kits—because education deserves a reward!

Please fill out the form above, and our team will get in touch with you promptly!
😊🚀

Get A Free Quote! 🎉

Can’t find the perfect STEM kit ? Want the best wholesale prices ?
Interested in becoming a distributor ?

Just fill out the form above, and we’ll get back to you ASAP with all the info you need! 😊🚀

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.