DFRobot LM35 Linear Temperature Sensor (SKU:DFR0023)

From DFRobot Electronic Product Wiki and Tutorial: Arduino and Robot Wiki-DFRobot.com


The DFRobot LM35 Linear Temperature Sensor is based on the semiconductor LM35 temperature sensor. It can be used to detect ambient temperature. This sensor is produced by National Semiconductor Corporation and offers a functional range between 0 to 150℃. The sensitivity is 10mV/℃. The output voltage is proportional to the temperature.
It is commonly used as a temperature measurement sensors. It includes thermocouples, platinum resistance, thermal resistance and temperature semiconductor chips, which commonly used in high temperature measurement thermocouples. Platinum resistance temperature used in the measurement of 800 degrees Celsius, while the thermal resistance and semiconductor temperature sensor suitable for measuring the temperature of 100-200 degrees or below, in which the application of a simple semiconductor temperature sensor has good linearity and high sensitivity. The LM35 linear temperature sensor and sensor-specific expansion of Arduino board, in combination, can be very easy to achieve.


  • Sensor Chip Model: LM35
  • Supply Voltage: 3.3~5.0V
  • Sensor Chip Sensitivity: 10mV/℃
  • Measuring Range: 0~150℃
  • Precision: ±1℃
  • Connector Type: PH2.0-3P
  • Dimension: 30*22 mm


Connection Diagram

DFR0023 Diagram.png

Sample Code

For Arduino
void setup()
    Serial.begin(9600);//Set Baud Rate to 9600 bps

void loop()
    uint16_t val;
    double dat;
    val=analogRead(A0);//Connect LM35 on Analog 0
    dat = (double) val * (5/10.24); 
    Serial.print("Tep:"); //Display the temperature on Serial monitor
For Micropython
from machine import ADC,Pin
import time

while True:
    dat=(val/4096)* 3300/10.24


More question and cool idea,visit DFRobot Forum


Nextredirectltr.pngGo Shopping: Gravity: Analog LM35 Temperature Sensor For Arduino
Nextredirectltr.png DFRobot Distributor List