diff --git a/.github/workflows/arduino-lint.yml b/.github/workflows/arduino-lint.yml index 0ad60f4..aed264b 100644 --- a/.github/workflows/arduino-lint.yml +++ b/.github/workflows/arduino-lint.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: arduino/arduino-lint-action@v2 with: library-manager: update diff --git a/.github/workflows/arduino_test_runner.yml b/.github/workflows/arduino_test_runner.yml index 1897982..a2a5f07 100644 --- a/.github/workflows/arduino_test_runner.yml +++ b/.github/workflows/arduino_test_runner.yml @@ -6,9 +6,8 @@ jobs: runTest: runs-on: ubuntu-latest timeout-minutes: 20 - steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: ruby/setup-ruby@v1 with: ruby-version: 2.6 diff --git a/.github/workflows/jsoncheck.yml b/.github/workflows/jsoncheck.yml index 8804e69..2c52dc7 100644 --- a/.github/workflows/jsoncheck.yml +++ b/.github/workflows/jsoncheck.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: json-syntax-check uses: limitusus/json-syntax-check@v2 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c074b3..a73e342 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.5.5] - 2026-01-10 +- update GitHub actions +- update examples +- minor edits + ## [0.5.4] - 2025-08-20 -- update github actions +- update GitHub actions - update examples - minor edits diff --git a/LICENSE b/LICENSE index cc54713..dd89d54 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017-2025 Rob Tillaart +Copyright (c) 2017-2026 Rob Tillaart Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 9942fa1..99244a8 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ For converting temperature to Fahrenheit or Kelvin, see https://github.com/RobTi For diagnosis if a DHT sensor gives strange readings one can use **dhtnew_pulse_diag_ext.ino** to compare timing with the datasheet. +Feedback as always is welcome. + ### Sonoff Si7021 @@ -373,6 +375,9 @@ Support KY015 (again) Add **DHT_endless_debug.ino** develop example 38. (0.5.3) Update readme.md for Arduino R4 +39. (0.5.4) +40. (0.5.5) +Update gitHub actions + minor edits ## Future diff --git a/dhtnew.cpp b/dhtnew.cpp index a0e741b..69efd7b 100644 --- a/dhtnew.cpp +++ b/dhtnew.cpp @@ -1,7 +1,7 @@ // // FILE: dhtnew.cpp // AUTHOR: Rob Tillaart -// VERSION: 0.5.4 +// VERSION: 0.5.5 // PURPOSE: DHT Temperature & Humidity Sensor library for Arduino // URL: https://github.com/RobTillaart/DHTNEW // @@ -37,7 +37,7 @@ DHTNEW::DHTNEW(uint8_t pin) { _dataPin = pin; reset(); -}; +} void DHTNEW::reset() @@ -320,7 +320,7 @@ void DHTNEW::powerUp() digitalWrite(_dataPin, HIGH); // do a dummy read to synchronise the sensor read(); -}; +} void DHTNEW::powerDown() diff --git a/dhtnew.h b/dhtnew.h index b3ebe42..d6cab6e 100644 --- a/dhtnew.h +++ b/dhtnew.h @@ -2,7 +2,7 @@ // // FILE: dhtnew.h // AUTHOR: Rob Tillaart -// VERSION: 0.5.4 +// VERSION: 0.5.5 // PURPOSE: DHT Temperature & Humidity Sensor library for Arduino // URL: https://github.com/RobTillaart/DHTNEW // @@ -18,7 +18,7 @@ #include "Arduino.h" -#define DHTNEW_LIB_VERSION (F("0.5.4")) +#define DHTNEW_LIB_VERSION (F("0.5.5")) #define DHTLIB_OK 0 diff --git a/examples/dhtnew_adaptive_delay/dhtnew_adaptive_delay.ino b/examples/dhtnew_adaptive_delay/dhtnew_adaptive_delay.ino index a984064..3ba015e 100644 --- a/examples/dhtnew_adaptive_delay/dhtnew_adaptive_delay.ino +++ b/examples/dhtnew_adaptive_delay/dhtnew_adaptive_delay.ino @@ -34,7 +34,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println("dhtnew_adaptive_delay.ino"); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/examples/dhtnew_array/dhtnew_array.ino b/examples/dhtnew_array/dhtnew_array.ino index 488cf13..096220f 100644 --- a/examples/dhtnew_array/dhtnew_array.ino +++ b/examples/dhtnew_array/dhtnew_array.ino @@ -30,7 +30,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println("dhtnew_array.ino"); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/examples/dhtnew_dht11/dhtnew_dht11.ino b/examples/dhtnew_dht11/dhtnew_dht11.ino index 0141aca..5364964 100644 --- a/examples/dhtnew_dht11/dhtnew_dht11.ino +++ b/examples/dhtnew_dht11/dhtnew_dht11.ino @@ -25,7 +25,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println("dhtnew_dht11.ino"); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/examples/dhtnew_dht22/dhtnew_dht22.ino b/examples/dhtnew_dht22/dhtnew_dht22.ino index 8be28c1..74a2eaf 100644 --- a/examples/dhtnew_dht22/dhtnew_dht22.ino +++ b/examples/dhtnew_dht22/dhtnew_dht22.ino @@ -25,7 +25,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println("dhtnew_dht22.ino"); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/examples/dhtnew_endless/dhtnew_endless.ino b/examples/dhtnew_endless/dhtnew_endless.ino index a91fa67..28fd522 100644 --- a/examples/dhtnew_endless/dhtnew_endless.ino +++ b/examples/dhtnew_endless/dhtnew_endless.ino @@ -30,7 +30,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println("DHT_endless.ino"); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/examples/dhtnew_endless_debug/dhtnew_endless_debug.ino b/examples/dhtnew_endless_debug/dhtnew_endless_debug.ino index 7f0ffac..35eb11a 100644 --- a/examples/dhtnew_endless_debug/dhtnew_endless_debug.ino +++ b/examples/dhtnew_endless_debug/dhtnew_endless_debug.ino @@ -33,7 +33,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println("DHT_endless_debug.ino"); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/examples/dhtnew_endless_insideFunction/dhtnew_endless_insideFunction.ino b/examples/dhtnew_endless_insideFunction/dhtnew_endless_insideFunction.ino index e1db7b9..9ce7318 100644 --- a/examples/dhtnew_endless_insideFunction/dhtnew_endless_insideFunction.ino +++ b/examples/dhtnew_endless_insideFunction/dhtnew_endless_insideFunction.ino @@ -29,7 +29,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println("dhtnew_endless_insideFunction.ino"); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/examples/dhtnew_minimum/dhtnew_minimum.ino b/examples/dhtnew_minimum/dhtnew_minimum.ino index c766b13..55520af 100644 --- a/examples/dhtnew_minimum/dhtnew_minimum.ino +++ b/examples/dhtnew_minimum/dhtnew_minimum.ino @@ -25,7 +25,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println(__FILE__); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/examples/dhtnew_minimum_insideFunction/dhtnew_minimum_insideFunction.ino b/examples/dhtnew_minimum_insideFunction/dhtnew_minimum_insideFunction.ino index 13925c3..b740e2e 100644 --- a/examples/dhtnew_minimum_insideFunction/dhtnew_minimum_insideFunction.ino +++ b/examples/dhtnew_minimum_insideFunction/dhtnew_minimum_insideFunction.ino @@ -25,7 +25,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println(__FILE__); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); } diff --git a/examples/dhtnew_powerDown/dhtnew_powerDown.ino b/examples/dhtnew_powerDown/dhtnew_powerDown.ino index eb5fe25..dea9d7e 100644 --- a/examples/dhtnew_powerDown/dhtnew_powerDown.ino +++ b/examples/dhtnew_powerDown/dhtnew_powerDown.ino @@ -29,7 +29,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println("dhtnew_powerDown.ino"); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/examples/dhtnew_pulse_diag/dhtnew_pulse_diag.ino b/examples/dhtnew_pulse_diag/dhtnew_pulse_diag.ino index 1146fdd..3c31706 100644 --- a/examples/dhtnew_pulse_diag/dhtnew_pulse_diag.ino +++ b/examples/dhtnew_pulse_diag/dhtnew_pulse_diag.ino @@ -33,6 +33,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println("dhtnew_pulse_diag.ino"); + Serial.println("DHTNEW_LIB_VERSION - test"); Serial.println(); // default should be HIGH diff --git a/examples/dhtnew_pulse_diag_ext/dhtnew_pulse_diag_ext.ino b/examples/dhtnew_pulse_diag_ext/dhtnew_pulse_diag_ext.ino index f39e5ed..c2af474 100644 --- a/examples/dhtnew_pulse_diag_ext/dhtnew_pulse_diag_ext.ino +++ b/examples/dhtnew_pulse_diag_ext/dhtnew_pulse_diag_ext.ino @@ -36,6 +36,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println("dhtnew_pulse_diag_ext.ino"); + Serial.println("DHTNEW_LIB_VERSION - test"); Serial.println(); // default should be HIGH diff --git a/examples/dhtnew_setReadDelay/dhtnew_setReadDelay.ino b/examples/dhtnew_setReadDelay/dhtnew_setReadDelay.ino index 92baac2..0487fcb 100644 --- a/examples/dhtnew_setReadDelay/dhtnew_setReadDelay.ino +++ b/examples/dhtnew_setReadDelay/dhtnew_setReadDelay.ino @@ -25,7 +25,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println(__FILE__); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/examples/dhtnew_simple/dhtnew_simple.ino b/examples/dhtnew_simple/dhtnew_simple.ino index ac324fc..9d3f5d9 100644 --- a/examples/dhtnew_simple/dhtnew_simple.ino +++ b/examples/dhtnew_simple/dhtnew_simple.ino @@ -25,7 +25,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println("dhtnew_simple.ino"); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/examples/dhtnew_suppressError/dhtnew_suppressError.ino b/examples/dhtnew_suppressError/dhtnew_suppressError.ino index 9e9359c..dec99a6 100644 --- a/examples/dhtnew_suppressError/dhtnew_suppressError.ino +++ b/examples/dhtnew_suppressError/dhtnew_suppressError.ino @@ -25,11 +25,11 @@ uint32_t count = 0; void setup() { + Serial.begin(115200); while(!Serial); // MKR1010 needs this - Serial.println(); Serial.println("dhtnew_suppressError.ino"); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/examples/dhtnew_test/dhtnew_test.ino b/examples/dhtnew_test/dhtnew_test.ino index 91349cc..de2719f 100644 --- a/examples/dhtnew_test/dhtnew_test.ino +++ b/examples/dhtnew_test/dhtnew_test.ino @@ -21,11 +21,10 @@ DHTNEW mySensor(5); // ESP 16 UNO 5 MKR1010 5 void setup() { while(!Serial); // MKR1010 needs this - Serial.begin(115200); Serial.println(); Serial.println("dhtnew_test.ino"); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/examples/dhtnew_waitForRead/dhtnew_waitForRead.ino b/examples/dhtnew_waitForRead/dhtnew_waitForRead.ino index 9d8624e..d5e7618 100644 --- a/examples/dhtnew_waitForRead/dhtnew_waitForRead.ino +++ b/examples/dhtnew_waitForRead/dhtnew_waitForRead.ino @@ -6,7 +6,7 @@ // DHT PIN layout from left to right // ================================= -// FRONT : DESCRIPTION +// FRONT : DESCRIPTION // pin 1 : VCC // pin 2 : DATA // pin 3 : Not Connected @@ -25,7 +25,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println("dhtnew_waitForRead.ino"); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); @@ -74,7 +74,7 @@ void test() // DISPLAY IF OLD OR NEW DATA if (duration > 50){Serial.print("NEW\t");}else{Serial.print("OLD\t");} - + // DISPLAY DATA Serial.print(mySensor.getHumidity(), 1); Serial.print(",\t"); diff --git a/examples/dhtnew_waitForRead_nonBlocking/dhtnew_waitForRead_nonBlocking.ino b/examples/dhtnew_waitForRead_nonBlocking/dhtnew_waitForRead_nonBlocking.ino index d6ecbbd..657cfa0 100644 --- a/examples/dhtnew_waitForRead_nonBlocking/dhtnew_waitForRead_nonBlocking.ino +++ b/examples/dhtnew_waitForRead_nonBlocking/dhtnew_waitForRead_nonBlocking.ino @@ -25,7 +25,7 @@ void setup() Serial.begin(115200); Serial.println(); Serial.println("dhtnew_waitForRead_nonBlocking.ino"); - Serial.print("LIBRARY VERSION: "); + Serial.print("DHTNEW_LIB_VERSION: "); Serial.println(DHTNEW_LIB_VERSION); Serial.println(); diff --git a/library.json b/library.json index f3c275b..5289e67 100644 --- a/library.json +++ b/library.json @@ -13,7 +13,7 @@ "type": "git", "url": "https://github.com/RobTillaart/DHTNEW.git" }, - "version": "0.5.4", + "version": "0.5.5", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/library.properties b/library.properties index 9157fa9..9a3a726 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=DHTNEW -version=0.5.4 +version=0.5.5 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for DHT temperature and humidity sensor, with automatic sensortype recognition.