node mcu上使用dht11(采用arduino ide编程)
#include “DHT.h”#define DHTTYPE DHT11 // DHT 11#define dht_dpin D5 //引脚DHT dht(dht_dpin, DHTTYPE);void setup(void){dht.begin();Serial.begin(9600);Serial.println(“Humidity and temperature\n\n...