/MQLib

A simple library to retrieve the information given from the MQ sensor with Arduino

Primary LanguageCMake

MQ sensor library

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 sensor

Usage

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.

yanoschik's fork history

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)