labay11 / MQ-2-sensor-library

A simple library to retrieve the information given from the MQ 2 sensor in arduino
Apache License 2.0
50 stars 32 forks source link

How you get Ro? #1

Closed fega closed 7 years ago

fega commented 8 years ago

Hello , I want to know, how you determine Ro in your library? thanks

yanoschik commented 8 years ago

Just read the code and you'll find calibration at startup... (btw. I got this lib slightly updated MQ2Lib)

labay11 commented 8 years ago

It's done in the begin() method in MQ2.cpp which assigns the value returned by MQCalibration()

And thank's to @yanoschik for updating this library.