LM35DZ Temperature Sensor
LM35DZ Precision Analog Temperature Sensor
Linear +10mV/°C Output for Accurate Temperature Measurement
Introduction
The LM35DZ is a precision integrated-circuit temperature sensor that provides an analog output voltage linearly proportional to the Celsius temperature. With ±0.5°C accuracy (at 25°C) and no external calibration required, it’s ideal for environmental monitoring, HVAC systems, and industrial applications.
Key Features
Linear Output
+10mV per °C (0°C = 0V)
High Accuracy
±0.5°C at 25°C (typical)
Simple Interface
Single analog output
Low Power
60μA current draw (typical)
Technical Specifications
| Temperature Range | 0°C to +100°C (DZ version) |
|---|---|
| Output Scale Factor | +10.0mV/°C |
| Accuracy | ±0.5°C at 25°C |
| Supply Voltage | 4V to 30V (5V typical) |
| Current Drain | 60μA (typical) |
| Package | TO-92 (3-pin) |
Pin Configuration (TO-92 Package)
| Pin | Name | Description | Arduino Connection |
|---|---|---|---|
| 1 | VCC | Power Supply (4-30V) | 5V |
| 2 | VOUT | Analog Output | A0 |
| 3 | GND | Ground | GND |
Note: Flat side of TO-92 package faces toward you when pins point downward
Basic Wiring (Arduino)
// Basic Connections: // VCC → 5V // VOUT → A0 (or any analog input) // GND → GND // Optional: Add 0.1μF capacitor between VCC and GND // for noise reduction in electrically noisy environments
Temperature Measurement Example
const int sensorPin = A0;
void setup() {
Serial.begin(9600);
}
void loop() {
// Read analog voltage (0-1023)
int sensorValue = analogRead(sensorPin);
// Convert to voltage (5V reference)
float voltage = sensorValue * (5.0 / 1023.0);
// Convert to temperature (10mV per °C)
float temperature = voltage * 100;
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
delay(1000);
}
Advanced Applications
Negative Temperature Measurement
// For -55°C to +150°C range:
// Use LM35CZ version with dual supply
// Connect VCC to +5V, GND to -5V
// Output will be 0V at 0°C, positive for
// temperatures above zero, negative below
Improved Resolution
// Use Arduino's internal 1.1V reference
analogReference(INTERNAL); // 1.1V on ATmega
// Now 1.1V = 1023, giving ~0.1°C resolution
// in the 0-110°C range
Multiple Sensors
// Array of sensor pins
const int sensorPins[] = {A0,A1,A2,A3};
float temperatures[4];
void readTemperatures() {
for(int i=0; i<4; i++) {
int val = analogRead(sensorPins[i]);
temperatures[i] = (val * (5.0/1023.0)) * 100;
}
}
Temperature Averaging
// Moving average filter
#define READINGS 10
float tempHistory[READINGS];
int index = 0;
float getFilteredTemp() {
tempHistory[index] = temperature;
index = (index + 1) % READINGS;
float sum = 0;
for(int i=0; i
Troubleshooting
Incorrect Readings
- Verify wiring (VCC, GND, VOUT)
- Check for proper voltage at VCC pin
- Ensure sensor isn't self-heating (limit current)
Noisy Output
- Add 0.1μF ceramic capacitor near sensor
- Use shorter wires between sensor and Arduino
- Implement software averaging
Zero Voltage at Room Temp
- Check for reversed power supply
- Verify sensor isn't damaged (check continuity)
- Test with known good sensor
Related Posts
IC 74173 – 4-Bit D-Type Register with 3-State Outputs
IC 74173 - 4-Bit D-Type Register with 3-State Outputs
TTL Quad D Flip-Flop with Asynchronous Clear and Output ...
DIY Metal Detector Kit
DIY Metal Detector Kit
DC 3V-5V Non-Contact Sensor Module with 60mm Detection Range
Introduc...
CNC V3 Shield with 4 A4988 Drivers
CNC V3 Shield with 4 A4988 Drivers
Complete Arduino-compatible CNC controller for 3D printers and mi...
CN3791 12V MPPT Solar Charger Module
CN3791 12V MPPT Solar Charger Module
Maximum Power Point Tracking Solar Charge Controller for Lead-Acid/Lithiu...
CJMCU-TRRS 3.5mm Jack AV Stereo Module
CJMCU-TRRS 3.5mm Jack AV Stereo Module
Compact breakout board for audio/video signal interfacing with TRRS con...
TTP223 Capacitive Touch Sensor Module (Red)
TTP223 Capacitive Touch Sensor Module (Red)
Single-Key Touch Detection with Digital Output for Arduino and DIY...
Capacitive Soil Moisture Sensor
Capacitive Soil Moisture Sensor
Corrosion-Resistant Humidity Detection for Plants and Agricultural Application...
VHM-314 Bluetooth Audio Receiver Board Module
VHM-314 Bluetooth Audio Receiver Board Module
High-fidelity stereo audio receiver with Bluetooth 5.0 and 3.5mm...
BD243 DIY Mini Tesla Coil Prototyping Kit
BD243 DIY Mini Tesla Coil Prototyping Kit
High-Voltage Wireless Power Demonstration - Build Your Own Spark Gap...
BF120-3AA Precision Strain Gauges (120Ω)
BF120-3AA Precision Strain Gauges (120Ω)
High-precision foil strain gauges for load cell applications with 120...
AI Thinker ESP32-CAM Development Board
AI Thinker ESP32-CAM Development Board
WiFi + Bluetooth with OV2640 Camera Module - Arduino Compatib...

Recent Comments