首先,它将连接到WiFi网络。然后,它会立即尝试从DHT11湿度传感器读取数据,并根据该数据计算温度和湿度值。 此后,温度和温度值湿度将上传到ThingSpeak API。如果您在ThingSpeak中打开通道,则可以看到与DHT11传感器中的值相关联的图表。 结论和应用 在这个简单的项目中,我向您展示了如何将DHT11湿度传感器与ESP8266和ThingS...
在这个项目中,我开发了一个Arduino库来读取 DHT11 湿度和温度传感器生成的数据,并使用 AZDeliveryESP8266ESP-12F NodeMCULua Amica V2 将其连续发送到 ThingSpeak 云服务。 有许多库可以用来读取 DHT11传感器数据。那么,为什么要重新发明轮子呢?只是为了了解事物的运作方式并可能改进它们的乐趣。
Code Issues Pull requests Notes & HowTo's covering the Raspberry Pi, Arduino, ESP8266, ESP32, etc. gitraspberry-piopencviotawsarduinoesp8266node-reds3youtube-dlmopidydht11alexapimps-youtubethingspeakmcp3008raspberry-pi-3esp8266-arduinorekognitionraspberry-pi-2 ...
Connect DHT11 data pin to GPIO0 or GPIO2 (all esp8266 modules have these) Modify secret.lua to match your Wifi connection and thingspeak.com channel name Upload lua files to ESP8266 ... Profit Releases No releases published Languages
We save the file with CTRL + O and exit the editor with CTRL + X. Then we execute our code: sudo python dht_example.py Earlier version There is also another repository from Adafruit, which should no longer be used. For the sake of completeness, I’ll show it here anyway (you can ...