From 6a035cc5d0a5524fe62fc42327eb8cfe52c17b74 Mon Sep 17 00:00:00 2001 From: miguel5612 Date: Mon, 21 Mar 2022 14:19:48 -0500 Subject: [PATCH] Fix in regression of MQ136 --- examples/MQ-136/MQ-136.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/MQ-136/MQ-136.ino b/examples/MQ-136/MQ-136.ino index 7036e35..161096a 100644 --- a/examples/MQ-136/MQ-136.ino +++ b/examples/MQ-136/MQ-136.ino @@ -38,14 +38,14 @@ void setup() { //Set math model to calculate the PPM concentration and the value of constants MQ136.setRegressionMethod(1); //_PPM = a*ratio^b - MQ136.setA(1043.3); MQ136.setB(-3.282); // Configure the equation to to calculate H2S Concentration + MQ136.setA(36.737); MQ136.setB(-3.536); // Configure the equation to to calculate H2S Concentration /* Exponential regression: GAS | a | b - H2S | 1043.3 | -3.282 - NH4 | 309.6 | -1.407 - CO | 1728.9 | -1.879 + H2S | 36.737 | -3.536 + NH4 | 98.551 | -2.475 + CO | 503.34 | -3.774 */ /***************************** MQ Init ********************************************/