{{ 'fb_in_app_browser_popup.desc' | translate }} {{ 'fb_in_app_browser_popup.copy_link' | translate }}
{{ 'in_app_browser_popup.desc' | translate }}
{{word('consent_desc')}} {{word('read_more')}}
{{setting.description}}
{{ childProduct.title_translations | translateModel }}
{{ getChildVariationShorthand(childProduct.child_variation) }}
{{ getSelectedItemDetail(selectedChildProduct, item).childProductName }} x {{ selectedChildProduct.quantity || 1 }}
{{ getSelectedItemDetail(selectedChildProduct, item).childVariationName }}
DHT22 (AM2302) temperature and humidity sensor module that returns floating point readings
3.3-5V DC | single-bus digital output | humidity 0-99.9%RH | temperature -40 to 80C | +/-0.5C and +/-2%RH
Arduino example provided; 4-pin cable and jumper wires included
滿千免運優惠(限郵寄和超商純取貨) on order
本賣場無實體店面,無提供自取服務,敬請見諒。 on order
Not enough stock.
Your item was not added to your cart.
Not enough stock.
Please adjust your quantity.
{{'products.quick_cart.out_of_number_hint'| translate}}
{{'product.preorder_limit.hint'| translate}}
Limit {{ product.max_order_quantity }} per order.
Only {{ quantityOfStock }} item(s) left.
本範例使用 Arduino Uno Rev3(原裝) ,連接Circus DHT22 溫溼度感測器模組,每 2.5秒讀取現場環境「溫度」與「濕度」數值。
【電路圖 】
使用設備
本範例使用之程式庫為 「 SimpleDHT_Library,該程式庫已給定數位訊號腳位。
本範例中的訊號腳位設為 「D2」 。

Arduino 程式撰寫範例
本撰寫範例將會有兩個步驟
1. 安裝程式庫
2. 程式碼撰寫
3. 顯示溫度與濕度數值
1. 安裝程式庫
1-1. 確認網路是否已連線到網際網路。
1-2. 開啟 Arduino 的 IDE 介面後,請到上方的功能選項中,點選 「草稿碼」-> 「匯入程式庫」-> 「管理程式庫」。

1-3. 在搜尋欄位中,輸入 「SimpleDHT」,找到該項目後便可點擊「安裝」按鈕,開始安裝程式庫。

2. 程式碼撰寫
相關程式碼請點擊此連結
3. 讀取溫度與濕度數值
3-1. 開啟 Arduino 序列部監控視窗( 點擊紅框處 )

3-2. 確認序列部監控視窗的 baud(紅框處) 是否與程式碼設定的 baud相同。若兩者皆相同即可開始監控數值。

| 供電電壓 | 3.3 ~ 5V DC |
| 輸出 | 單匯流排數位信號 |
| 測量範圍 | 濕度0-99.9%RH,溫度-40~80℃ |
| 測量精度 | 濕度0.1%RH,溫度0.1℃ |