In my case, the DHT sensor is connected to the GPIO4 of ESP32. #define DHTTYPE DHT11 // DHT 11 uint8_t DHTPin = 4; DHT dht(DHTPin, DHTTYPE);.
確定! 回上一頁