Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions PartSensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
8 changes: 6 additions & 2 deletions config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -27,8 +31,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";

/*
Expand Down