We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b27290 commit 05f2dd9Copy full SHA for 05f2dd9
src/MQ131.cpp
@@ -178,8 +178,8 @@ MQ131Class::~MQ131Class() {
178
}
179
// For humidity > 75%, use the 85% curve
180
if(humidityPercent > 75) {
181
- // R^2 = 0.9986
182
- return -0.0141 * temperatureCelsuis + 1.5623;
+ // R^2 = 0.996
+ return -0.0103 * temperatureCelsuis + 1.1507;
183
184
// For humidity > 50%, use the 60% curve
185
if(humidityPercent > 50) {
@@ -188,8 +188,8 @@ MQ131Class::~MQ131Class() {
188
189
190
// Humidity < 50%, use the 30% curve
191
- // R^2 = 0.996
192
- return -0.0103 * temperatureCelsuis + 1.1507;
+ // R^2 = 0.9986
+ return -0.0141 * temperatureCelsuis + 1.5623;
193
194
195
/**
0 commit comments