[MicroPython] [Voice] Use ESP32 DevkitC V4 to aquire signals of DHT11 sensor 使用ESP32 DevKitC V4開發版來讀取DHT11數位溫溼度感測器

This example shows how to use ESP32 DevKitC V4 to read temperature and humidity data from DHT11 sensor. 本範例說明如何使用ESP32 DevKitC V4來讀取DHT11數位溫溼度感測器的資料。


Import dht library and define the data pin in the pin of dht in main.py.
在main.py中,輸入dht函數庫,與定義data腳位在dht的函數中。
Than use print() to display and update temperature and humidity data with time interval of 2 sec. 使用print()函數去顯示與更新溫溼度的數值每兩秒

 

- 韌體 Firmware: Micropython - 硬體 Hardware: ESP32 DevKitC V4,DHT11 - 開發環境 IDE: Thonny - 程式語言 Language: Python
- 作業系統 OS: Windows We will share more tutorial videos with people who want to learn LabVIEW and Python welcome to subscribe this channel. 未來會陸續更新影片,讓想學習LabVIEW和Python的朋友可以看影片學習,歡迎訂閱此頻道。 其他網址/related websites: https://labview-tech.blogspot.com/ https://fishark.pixnet.net/blog
email: jacklee3633@gmail.com Line: lvnet

留言

這個網誌中的熱門文章

使用VS code開發Python程式 - Matplotlib繪圖

使用Pycharm開發Python程式與用Matplotlib繪圖

[Python][tkinter] Build tkinter GUI 使用tkinter建立圖形視窗