# 温湿度传感器模块

## 概述

DHT11温湿度传感器可同时测量温度和湿度，它应用专用的数字模块采集技术和温湿度传感技术，使产品具有极高的可靠性与稳定性。超小的体积、极低的功耗，信号传输距离可达20米以上，使其成为各类应用甚至最为苛刻的应用场合的最佳选则。

## 参数

* 尺寸：48x24mm
* 工作电压：+3.3-5V
* 温度范围：0-50℃ 误差±2℃
* 湿度范围：20-90%RH 误差±5%RH
* 接口类型：XH2.54mm-3P
* 引脚定义：1-地 2-电源 3-信号

## 接口说明

* 可用端口：2、3、4、9、10、11、12、13、A0、A1、A2、A3

## 使用方式

![](/files/-LWVPWIuIsrKMpLGCtLZ)

## 示例代码

![](/files/-LWVPWIwjhfL_H34uQxP)

![](/files/-LWVPWIyApIF3pMTCMog)

[DHT11温湿度传感器模块示例代码](http://www.haohaodada.com/show.php?id=955675)

## 原理图

{% file src="/files/-LrD8iYkTcfw0PnruO8Y" %}
温湿度传感器模块原理图
{% endfile %}

## 尺寸说明

![](/files/-LWVPVY3e-Jx5ZBpQh7a)

## 相关资源

{% file src="/files/-LrHO8O2SRBHim6y3eLN" %}
DHT11芯片说明
{% endfile %}

## 常见问题


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.haohaodada.cn/jiao-xue-chan-pin/arduino-kai-yuan-ying-jian/dht11-wen-shi-du-chuan-gan-qi-mo-kuai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
