add AM2120 device type (#6115)

This commit is contained in:
alexbuit
2024-01-19 03:50:00 +01:00
committed by GitHub
parent 1fef769496
commit 6561746f97
3 changed files with 4 additions and 1 deletions
+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);