DFRobot_LM35_Linear_Temperature_Sensor__SKU_DFR0023_-DFRobot

Introduction

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 are commonly used in high temperature measurement thermocouples. Platinum resistance temperature modules are used in measurements of 800 degrees Celsius, while the thermal resistance and semiconductor temperature sensor suitable for measuring the temperature of 100-200 degrees or below. In this type of application the semiconductor temperature sensor has good linearity and high sensitivity. The LM35 linear temperature sensor and sensor-specific expansion of Arduino board, can allow for quick and easy plug and play and reliable data.

Specification

Tutorial

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
    Serial.print(dat);
    Serial.println("C");
    delay(500);
}

For Micropython

from machine import ADC,Pin
import time

adc0=ADC(Pin(36))
while True:
    val=adc0.read()
    dat=(val/4096)* 3300/10.24
    print("dat=",dat,"C")
    time.sleep(1)

FAQ

More question and cool idea,visit DFRobot Forum

More Documents