This is a simple library to use with the MQ-2 sensor and Arduino.
Based on: xerlay11/MQ-2-sensor-library
More info also here:
-
MQ-2 Based on: sandboxelectronics
-
MQ-6 Based on: sandboxelectronics
-
MQ-8 Based on: sandboxelectronics
-
MQ-4 The Curve is wrong
-
MQ-9 The Curve is wrong
To install the library into the Arduino IDE, download it as zip and unzip it into your 'libraries' folder and restart the Arduino IDE.
For more on usage - see the included example.
v0.1
- code reformatting and redesign (4 better readability)
- correct Arduino library layout
- variable and code optimization
- corrected errors
- reading rate reworked (implemented sample rate for sensor reading and also for each gas value)