Gas leakage Alarm using MQ_ Sensor [Diy].

LPG gas is highly inflammable in nature, leakage of such gas at Home, Industry or any other places can be extremely dangerous. This circuit based on MQ2 sensor can be used to detect and raise alarm on leakage of such inflammable gas.

Components Required:-

  1. MQ2 Sensor Module
  2. Transistor:-
  3. IC
  4. Resistor:-
    120 ohm
    470 ohm
  5. Zener Diode
  6. LED -(2)
  7. Speaker – 0.5W, 1W or above.
  8. Power Supply – 5V

Above is an image of MQ2 sensor module, we can see four pins on it marked as Vcc, Gnd, Digital out and Analog out; sometimes Digital out is also marked as Dout or DO and Analog out as Aout or AO.
Vcc pin is used to give +ve power supply to the module and Gnd to give -Ve or Ground supply to the module.

MQ2 Sensor Module:_
MQ2 Sensor Module is designed to detect Combustible Gas(LPG) and Smoke. When gas is detected by the sensor the digital state of the digital output pin is changed. There are two types of modules available in market, first one whose output state changes from HIGH to LOW on the detection and the second one whose output state changes from LOW to HIGH on detection of the gas. The majority of module available in market is of the first type which we are using in this project.

The sensitivity of sensor can be adjusted by rotating(clockwise or counterclockwise) the trimpot mounted on the module.
Analog pin gives analog output according to the amount of gas present in the air, which we are not using in this project.

A simple version of the Circuit


The Gas Leakage alarm circuit can be made using a more simple circuit, as shown above. we can see that a lot of components are eliminated in this simplified version of the circuit.
So what’s the difference between these two circuits??
— In the simplified version of circuit we are using a Buzzer which will make continuous beep sound when inflammable gas is detected while in another circuit( first one) we are using UM3561 based tone generator which will produce Police Siren Sound or Fire Alarm Sound, so it will be more appealing, also Darlington pair of transistor is used to produce a loud alarm.


MQ2 Sensor module runs on 5v, so a 5vdc regulated power supply is required.
The second part of this circuit is a tone generator. IC UM3561 can generate four different types of tones:- 1)Police Siren 2)Fire Force 3)Ambulance 4)Gun Sound. In this circuit, we are using two of them, first and the second one i.e. police siren sound and the Fire Force sound. switch S1 is used to toggle between two sounds.
When Gas is detected, output at digital pin of the ‘sensor module’ goes from high to low which turns on the PNP transistor 2N3906; as a result, UM3561 based tone generator circuit gets ON.

UM3561 works on a voltage range of 2.4V to 3.6V, but we are using 5V power supply for this circuit, so to regulate suitable voltage for IC UM3561 we have added a 3.1V Zener diode.

Two transistors 2N3904 and 2N2222 are connected to the output pin[pin 3] of IC UM3561, these transistors are connected in Darlington configuration which results in a louder output sound.

How to use

After connecting all the components according to the circuit diagram, connect the circuit to a 5V dc power supply, a USB charger or USB power bank can also be used as Power supply, now wait for 30 to 60 seconds this time is required by the sensor to warm up, after this time sensor will be ready to detect inflammable Gas.
A Potentiometer is preinstalled in the Gas Sensor Module which can be used to adjust the Gas sensitivity of the sensor module.
“How to adjust this potentiometer??”” ,, A small screwdriver can be used to rotate the potentiometer in the clockwise or anticlockwise direction which will increase or decrease the sensitivity.

446 thoughts on “Gas leakage Alarm using MQ_ Sensor [Diy].”

  1. Does your website have a contact page? I’m having problems locating it but, I’d like to shoot you an e-mail. I’ve got some recommendations for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it expand over time.|

  2. Fantastic beat ! I wish to apprentice while you amend your website, how could i subscribe for a blog site? The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast offered bright clear idea|

  3. This is the right webpage for anybody who really wants to find out about this topic. You know so much its almost tough to argue with you (not that I actually will need to…HaHa). You certainly put a brand new spin on a topic that’s been discussed for years. Excellent stuff, just excellent!|

  4. Hello there, just became aware of your blog through Google, and found that it’s truly informative. I’m going to watch out for brussels. I’ll be grateful if you continue this in future. Numerous people will be benefited from your writing. Cheers!|

  5. I just could not depart your website prior to suggesting that I extremely loved the standard info a person supply to your visitors? Is going to be back ceaselessly in order to investigate cross-check new posts|

  6. An impressive share! I’ve just forwarded this onto a friend who had been doing a little research on this. And he in fact bought me dinner because I found it for him… lol. So let me reword this…. Thank YOU for the meal!! But yeah, thanx for spending some time to talk about this subject here on your website.|

  7. Hello! This is kind of off topic but I need some advice from an established blog. Is it difficult to set up your own blog? I’m not very techincal but I can figure things out pretty fast. I’m thinking about setting up my own but I’m not sure where to start. Do you have any ideas or suggestions? Thanks|

  8. My coder is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using WordPress on various websites for about a year and am worried about switching to another platform. I have heard excellent things about Is there a way I can transfer all my wordpress content into it? Any kind of help would be greatly appreciated!|

  9. Undeniably consider that that you stated. Your favourite reason appeared to be at the net the easiest thing to remember of. I say to you, I definitely get irked whilst other people consider worries that they plainly don’t recognise about. You managed to hit the nail upon the highest as well as defined out the entire thing without having side effect , other people could take a signal. Will likely be back to get more. Thank you|

  10. I loved as much as you will receive carried out right here. The sketch is attractive, your authored material stylish. nonetheless, you command get bought an shakiness over that you wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly a lot often inside case you shield this hike.|

  11. I’m impressed, I must say. Rarely do I encounter a blog that’s both educative and amusing, and without a doubt, you’ve hit the nail on the head. The issue is something not enough men and women are speaking intelligently about. I am very happy I found this in my search for something concerning this.|

  12. I’ve been exploring for a bit for any high quality articles or blog posts on this kind of space . Exploring in Yahoo I eventually stumbled upon this site. Studying this info So i am happy to express that I have a very just right uncanny feeling I found out just what I needed. I such a lot certainly will make certain to do not overlook this website and give it a glance regularly.|

  13. Hi there, just became aware of your blog through Google, and found that it’s really informative. I’m going to watch out for brussels. I will be grateful if you continue this in future. Lots of people will be benefited from your writing. Cheers!|

  14. Free spin bonuses are a type of no deposit casino bonuses. These bonuses grant the player the possibility to play a certain number of spins on selected slot machines. The amount the player wins is then added to their player account as bonus money, and wagering requirements need to be met to be able to make a withdrawal. Book of Dead is the most popular slot machine for no deposit free spins in Canada. New players can receive 50 or even 100 free spins Book of Dead from By depositing a minimum amount new users can also receive up to 900 free spins in total. If you want to use a Free Spins Bonus, you should not only pay attention to the number of free spins. Many other criteria are important, because your goal is to turn the winnings from the free spins into cash. The experts at NetEnt have listed some points you should at the very least look out for: Once your account has been verified by a member of our team, up to 50 free spins* will be making their way to you – no deposit required! The number of free spins that you receive will be determined by a Lobby Game. Once you’ve picked up your free bonus as part of our welcome offer you can get spinning and hopefully winning, on one of our original online slot games. To encourage new customers or retain the existing ones, casinos may award zero-commitment free spins. In other words, depositing is not a requirement to redeem the free spins offer. Many Canadian online casinos give you free spins without the need for a deposit. In this case, you’ll be awarded a free spin (or more than one) on a specific slot game without having to make a deposit into your casino account. In addition to free spins on registration, it’s also possible to get free spins no deposit as loyalty rewards.

  15. Hi, I do think this is a great web site. I stumbledupon it 😉 I will come back yet again since I book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to guide other people.|

  16. Can I just say what a comfort to discover an individual who actually understands what they’re discussing on the net. You definitely understand how to bring a problem to light and make it important. More people have to look at this and understand this side of your story. It’s surprising you aren’t more popular given that you most certainly possess the gift.|

  17. great submit, very informative. I’m wondering why the opposite experts of this sector do not understand this. You should proceed your writing. I am confident, you’ve a huge readers’ base already!|

  18. Hiya! Quick question that’s entirely off topic. Do you know how to make your site mobile friendly? My web site looks weird when viewing from my iphone4. I’m trying to find a theme or plugin that might be able to resolve this issue. If you have any suggestions, please share. Appreciate it!|

  19. We’re a bunch of volunteers and opening a brand new scheme in our community. Your site offered us with helpful information to work on. You’ve performed a formidable task and our whole community will be thankful to you.|

  20. Hi there! I know this is kinda off topic but I was wondering which blog platform are you using for this website? I’m getting sick and tired of WordPress because I’ve had issues with hackers and I’m looking at alternatives for another platform. I would be fantastic if you could point me in the direction of a good platform.|

  21. I don’t even understand how I ended up right here, however I assumed this put up was good. I don’t understand who you are but certainly you are going to a famous blogger for those who aren’t already. Cheers!|

  22. Please let me know if you’re looking for a writer for your weblog. You have some really good posts and I think I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some content for your blog in exchange for a link back to mine. Please shoot me an e-mail if interested. Thank you!|

  23. Those are the first rwo Tactical Monsters Rumble Arena Last Updated on 17 November, 2021 Idle Heroes Code – free to play Rpg Android and iOS mobile game by Dh Games – Do you want some free summon scrolls and gems, then enjoy these codes, but don’t let them expire, because codes don’t last forever IH777 – Redeem this CD Key for X number of rewards. (You can use this code after completing the stage 3-10 in the campaign mode). This is a permanent code. A new code CD Key is issued every month. Keep checking regularly for new CD Key codes for Idle Heroes. This code was last tried by us in July 2021.  Our Idle Heroes Codes November 2021 Wiki has the latest list of working OP CD Key codes. Get the new active gift codes and redeem some good rewards. This printable murder mystery hunt takes the game Clue off the board and combines it with a zany scavenger hunt, complete with hilarious curses, where players must interact with each other by forming alliances, gambling, bribing, blackmailing, and more in order to be the first to discover who murdered Georgie Gingerbread, what crazy weapon they did it with, and where they hid the magical hat that brought him to life in the first place.This printable game is perfect for kids, teens, and adults, a great game for groups.  Perfect for adding a little something different to your Holiday festivities! Word Find. Supplies: timer, paper, pens. Divide students into teams. Take a Christmas related word such as: Christmas, candy cane, Santa Claus, etc. and find as many words as possible using the letters of that word. Give a time limit (e.g. 2 mins). The team with the most words wins! Example: Christmas 1: (sit, is, his, miss, rat, tar, this, math, chair, rim…), Example 2: Candy cane (candy, cane, and, dance, day, nay, can, dye, an, any…). (TP: F: Spelling).


Leave a Comment