mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-07-05 11:51:02 +03:00
Fixed calibration
This commit is contained in:
@ -527,7 +527,7 @@ int MQUnifiedsensor::readPPM(int m, int b) {
|
||||
double ppm = pow(10, ppm_log); //Convert ppm value to log scale
|
||||
return floor(ppm);
|
||||
}
|
||||
int MQUnifiedsensor::calibrate(boolean print) {
|
||||
float MQUnifiedsensor::calibrate(boolean print) {
|
||||
//More explained in: https://jayconsystems.com/blog/understanding-a-gas-sensor
|
||||
/*
|
||||
V = I x R
|
||||
|
@ -274,7 +274,7 @@ class MQUnifiedsensor
|
||||
int readSensor(String nameLectureRequeired = "", bool print = false);
|
||||
int readPPM(int m, int b);
|
||||
|
||||
int calibrate(boolean print = false);
|
||||
float calibrate(boolean print = false);
|
||||
double getVoltage();
|
||||
double stringToDouble(String & str);
|
||||
|
||||
|
Reference in New Issue
Block a user