# MQSensorsLib This is a unified library to use sensors MQ: 2, 3, 4, 5, 6, 7, 8, 9, and 135. ## Getting Started ``` MQsensorLib Sensor1(MQ4); ppmMethano = Sensor1.readPPM(); ``` ### Prerequisites You'll need Arduino desftop app 1.8.9 or later. ### Sensor manufacter: | Sensor | Manufacter | URL Datasheet | |----------|----------|----------| | MQ-2 | Pololulu| [datasheet](https://www.pololu.com/file/0J309/MQ2.pdf) | | MQ-3 | Sparkfun | [datasheet](https://www.sparkfun.com/datasheets/Sensors/MQ-3.pdf) | | MQ-4 | Sparkfun | [datasheet](https://www.sparkfun.com/datasheets/Sensors/Biometric/MQ-4.pdf) | | MQ-5 | parallax | [datasheet](https://www.parallax.com/sites/default/files/downloads/605-00009-MQ-5-Datasheet.pdf) | | MQ-6 | Sparkfun | [datasheet](https://www.sparkfun.com/datasheets/Sensors/Biometric/MQ-6.pdf) | | MQ-7 | Sparkfun | [datasheet](https://www.sparkfun.com/datasheets/Sensors/Biometric/MQ-7.pdf) | | MQ-8 | Sparkfun | [datasheet](https://dlnmh9ip6v2uc.cloudfront.net/datasheets/Sensors/Biometric/MQ-8.pdf) | | MQ-9 | Haoyuelectronics | [datasheet](http://www.haoyuelectronics.com/Attachment/MQ-9/MQ9.pdf) | | MQ-131 | Sensorsportal | [datasheet](http://www.sensorsportal.com/DOWNLOADS/MQ131.pdf) | | MQ-135 | HANWEI Electronics | [datasheet](https://www.electronicoscaldas.com/datasheet/MQ-135_Hanwei.pdf) | | MQ-303A | HANWEI Electronics | [datasheet](http://www.kosmodrom.com.ua/pdf/MQ303A.pdf) | | MQ-309A | HANWEI Electronics | [datasheet](http://www.sensorica.ru/pdf/MQ-309A.pdf) | ### Info of datasheets (Lineal analisis of Logarithmic rects
Sensor | H2 | LPG | CH4 | CO | Alcohol | Propane | Benzine | Hexane | Smoke | Nox | CL2 | O3 | CO2 | Tolueno | NH4 | Iso-butano | Hydrogeno | Ethanol | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) | m (slope) | (Cut x axis) |