#define DHTPIN 4 //指定要量測的腳位為D4. #define DHTTYPE DHT22 //指定溫溼度感測器種類為DHT22. DHT dht(DHTPIN, DHTTYPE);. //溫濕度校正變數設定.
確定! 回上一頁