add AM2120 device type (#6115)

This commit is contained in:
alexbuit authored and GitHub committed 2024-01-19 11:50:00 +09:00
1 parent 1fef769496
commit 6561746f97
3 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ bool HOT IRAM_ATTR DHT::read_sensor_(float *temperature, float *humidity, bool r
delayMicroseconds(40);
} else if (this->model_ == DHT_MODEL_DHT22_TYPE2) {
delayMicroseconds(2000);
} else if (this->model_ == DHT_MODEL_AM2302) {
} else if (this->model_ == DHT_MODEL_AM2120 || this->model_ == DHT_MODEL_AM2302) {
delayMicroseconds(1000);
} else {
delayMicroseconds(800);