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:
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)