Gas sensor MQ-2


Codes for different boards and shields.
All codes only work with MQTT.
Values are in percent.

Arduino_Industrial_101.txt (686 Bytes)
ArduinoYun.txt (1.4 KB)
EthernetShieldW5100.txt (1.4 KB)
WiFi101Shield.txt (1.5 KB)
EthernetShieldW5200.txt (1.4 KB)
EthernetShieldW5500.txt (1.4 KB)
ManualConnection.txt (2.3 KB)
WiFiShield.txt (1.5 KB)

Sample from the Cayenne Dashboard.


if esp8266 suitable with which code


I did not write code because MQ-2 sensor is powered by 5V and ESP ADC is not tolerant to 5V.


this gas sensor data is which form ?ppm or percentage




alright thank you answer my question