# LM35温度传感器

## 概述

LM35温度传感器模块是基于LM35的半导体温度传感器，可以用来对环境温度进行检测。 温度测量常用的传感器包括热电偶、铂电阻、热敏电阻和半导体测温芯片，其中热电偶常用于高温测量，铂电阻用于中温测量（到摄氏800度左右），而热敏电阻和半导体温度传感器适合于100-200度以下的温度测量，其中半导体温度传感器的应用简单，有较好的线性度和较高的灵敏度。 LM35线性温度传感器与Arduino专用传感器扩展板结合使用，可以非常容易地实现与环境温度感知相关的互动效果。

## 参数

* 尺寸：48x24mm
* 工作电压：+3.3-5V
* 灵敏度：10mV/℃
* 测量温度范围：0\~100℃
* 接口类型：XH2.54mm-3P
* 引脚定义：1-地 2-电源 3-信号

## 接口说明

* 可用端口：A0、A1、A2、A3

## 使用方式

![](/files/-LWVPWpFqlMT8DI4ejLO)

## 示例代码

![](/files/-LWVPWpHzDJ5MMKMaFIT)

![](/files/-LWVPWpJqnEvQsa_fDPO)

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

## 原理图

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

## 尺寸说明

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

## 相关资源

{% file src="/files/-LrHO-p3jrtInwDKD6gR" %}
LM35芯片说明
{% 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/lm35-wen-du-chuan-gan-qi.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.
