Just wanted to share my experience with these 2 sensors, currently I’m just testing sensors before doing any integrations
The smaller MP2 was faster to pick up a burning cigarette placed right near it, while the MQ2 required the smoke to be inhaled right in, however after the smoke was gone the % of MQ2 recovered almost instantly, while the MP2 gradually reduced
All this being said, when I checked the graph of MQ2 - there was a 100% spike in a moment I didn’t test anything
Being from Turkey I can only buy electronic from Aliexpress
I suggest paying more and buying electronics from more reliable sources whenever possible, the MQ2 spike might have been caused by a clone NodeMCU 8266 board spiking things on power up, I could’ve never guessed I’d have to deal with so many power issues, these boards kill AMS1117’s like flies and my little remaining electrical experience is not enough to make sense of it all
Interesting. I have had an MQ2 in service for a few months and hadn’t given it much thought. But I tested it recently and was very happy with its ability to notice a lit match underneath it quite quickly. I’ve been looking at the chart history and have noticed the MQ2 levels rising when I am home as opposed to not home as well. I think it’s a neat device and I haven’t observed any spikes in my charts. I think it might be the 8266, as you mentioned, or maybe not all MQ2 are created equal. Nonetheless, thanks for the informative thread.
in code you can change
pin: GPIO03 # Sensor AO pin for your esp GPIO pin
adc_bit= 4095 # your esp GPIO bit value, change value with for 10-bit value 1023, 12-bit value 4095