Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/arduino-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/arduino_test_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jsoncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions dhtnew.cpp
Original file line number Diff line number Diff line change
@@ -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
//
Expand Down Expand Up @@ -37,7 +37,7 @@ DHTNEW::DHTNEW(uint8_t pin)
{
_dataPin = pin;
reset();
};
}


void DHTNEW::reset()
Expand Down Expand Up @@ -320,7 +320,7 @@ void DHTNEW::powerUp()
digitalWrite(_dataPin, HIGH);
// do a dummy read to synchronise the sensor
read();
};
}


void DHTNEW::powerDown()
Expand Down
4 changes: 2 additions & 2 deletions dhtnew.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/dhtnew_adaptive_delay/dhtnew_adaptive_delay.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion examples/dhtnew_array/dhtnew_array.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion examples/dhtnew_dht11/dhtnew_dht11.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion examples/dhtnew_dht22/dhtnew_dht22.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion examples/dhtnew_endless/dhtnew_endless.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion examples/dhtnew_endless_debug/dhtnew_endless_debug.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion examples/dhtnew_minimum/dhtnew_minimum.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion examples/dhtnew_powerDown/dhtnew_powerDown.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
1 change: 1 addition & 0 deletions examples/dhtnew_pulse_diag/dhtnew_pulse_diag.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/dhtnew_pulse_diag_ext/dhtnew_pulse_diag_ext.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/dhtnew_setReadDelay/dhtnew_setReadDelay.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion examples/dhtnew_simple/dhtnew_simple.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions examples/dhtnew_suppressError/dhtnew_suppressError.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
3 changes: 1 addition & 2 deletions examples/dhtnew_test/dhtnew_test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
6 changes: 3 additions & 3 deletions examples/dhtnew_waitForRead/dhtnew_waitForRead.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();

Expand Down Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "*",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=DHTNEW
version=0.5.4
version=0.5.5
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for DHT temperature and humidity sensor, with automatic sensortype recognition.
Expand Down