Recently I want to create a small project which can detect smoke gas using MQ-2 gas sensors.
I have found some research about MQ-2 sensors that normal reading from the sensor should be between 100-300ppm.
However, the output in the serial monitor of the IDE is below than 100 ppm, even below than 50 ppm when it is not detect any gas, isn't it should be around 100ppm when there is no any gas detect?
That's all for my question, hope I can get some clarification regarding to my question. Thank you.
They are very cheap and very sensitive, but you can not measure a ppm with it.
They change their resistance with a number of gasses, that's all. The sensor is more a gimmick and not so much a measuring device.
After the burn-in time you could calibrate it with a known amount of ppm. After that, it can give a number for the ppm. But that is not accurate at all, but if you want a number, then you have a number. It might be 10% inaccurate or 100% or 1000%.
What you can detect is a increase or decrease of the gasses it detects.
Adafruit has these gas sensors: https://www.adafruit.com/category/897.
They can be used for a generic air quality sensor.
Those gas sensors have sometimes also a (small) heater, just like the MQ-2 sensor.
They are often calibrated at the factory.
I hope that you are not trying to detect a combustible gas. The MQ-2 sensor with it big heater should not be near such gases. In that case, you should buy a certified gas sensor.
There is no mention in the video of 100-500 ppm.
Do you mean the value of "300" in the code at 4:07 ?
That is the value returned from a analog pin. It can very between 0...1023. See the function analogRead(): https://www.arduino.cc/reference/en/language/functions/analog-io/analogread/
It is a number for the voltage of the analog pin, it is not the ppm.
To get the best out of this sensor:
Burn-in (Preheat) the sensor for at least 24 hours.
Use it indoors. Keep it away from draft (moving air). Keep it in a room that has the same temperature and the same humidity.
Let it warm up for 5 minutes, before reading the value.
If it has been in a different place or if it has been stored for days or weeks, then do the burn-in (preheat) again.