From 0d6367907b4a0f0b26922128d592cdf9b21aa055 Mon Sep 17 00:00:00 2001 From: Lepterois <11948941+Lepterois@users.noreply.github.com> Date: Fri, 22 Dec 2017 23:07:57 +0100 Subject: [PATCH 1/3] Update config.h --- config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index 5264e85..642e1be 100644 --- a/config.h +++ b/config.h @@ -27,8 +27,8 @@ const char* Wifi_PASSWORD = "PASSWORD"; // Field4= Atm PM 1.0 (μg/m3) // Field5= Atm PM 2.5 (μg/m3) // Field6= Atm PM 10 (μg/m3) - // Field7= Humidity (%) - // Field8= Temperature (°C or F)*/ + // Field7= Temperature (°C or F)*/ + // Field8= Humidity (%) const String ThingSpeak_PM_APIKey = "APIKEY1"; /* From 79b274ac4e94383a9f3d8f87bc5103177baaed2f Mon Sep 17 00:00:00 2001 From: Lepterois <11948941+Lepterois@users.noreply.github.com> Date: Fri, 22 Dec 2017 23:12:06 +0100 Subject: [PATCH 2/3] Update config.h --- config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.h b/config.h index 642e1be..a242152 100644 --- a/config.h +++ b/config.h @@ -8,6 +8,10 @@ const char* Wifi_SSID = "SSID"; const char* Wifi_PASSWORD = "PASSWORD"; +// Ajustement TO et humidité +float adjustT0 = -1.9;// remplacer par la valeur de correction +float adjustHumidity = +11.3;// remplacer par la valeur de correction + //Thingspeak #define USE_THINGSPEAK //comment to remove thingspeak data feeding #ifdef USE_THINGSPEAK From 114c80390dc033779416a96fedba625cb2e77622 Mon Sep 17 00:00:00 2001 From: Lepterois <11948941+Lepterois@users.noreply.github.com> Date: Fri, 22 Dec 2017 23:15:51 +0100 Subject: [PATCH 3/3] Update PartSensor.ino --- PartSensor.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PartSensor.ino b/PartSensor.ino index f5775a2..2cf592e 100644 --- a/PartSensor.ino +++ b/PartSensor.ino @@ -562,11 +562,11 @@ void loop() { DEBUG_PRINTLN("loop start"); //Get Temperature & Humidity from DHT - humidity = dht.readHumidity(); + humidity = dht.readHumidity() + adjustHumidity; #ifdef USE_CELCIUS - temperature = dht.readTemperature(); + temperature = dht.readTemperature() + adjustT0; #else - temperature = dht.readTemperature(true); + temperature = dht.readTemperature(true) + adjustT0; #endif if (isnan(humidity) || isnan(temperature)) { DEBUG_PRINTLN("DHTXX not ready, skipped");