You can use the lm35dz sensor in temperature measurement applications. Thanks to its small size, you can make more precise measurements by placing it in the area you want to measure the temperature.
Features:
Calibrated directly in Degree Celsius (Centigrade)
Linear at 10.0 mV/°C scale factor
0.5°C accuracy guarantee-able (at a25°C)
Suitable for remote applications
Low cost due to wafer-level trimming
Operates from 4 to 30 volts
Less than 60 mA current drain
Low self-heating, 0.08°C in still air
Non-linearity only 0.25°C typical
Low impedance output, 0.1Ωfor 1 mA load
Scope of application:
power supplies
battery management systems
motor driver protection circuit
Package Included:
Pin Connections Table 1
Board Sensor Pin Connection LM35DZ VCC/GND/OUT 4-5V (or 3.3V, still works) / GND / board analog pin
LM35DZ Temperature Sensor Chinese - Arduino Uno
LM35DZ Temperature Sensor Chinese - Arduino Nano
LM35DZ Temperature Sensor Chinese - Arduino Mega
LM35DZ Temperature Sensor Chinese - ESP32
LM35DZ Temperature Sensor Chinese - ESP8266
LM35DZ Temperature Sensor Chinese - STM32
LM35DZ Temperature Sensor Chinese - Raspberry Pi Pico
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // Analog pin A0 on Arduino Uno. LM35 outputs 10mV per degree C, referenced to 0V, so it also happens to fit 3. 3V boards fine (max ~150C = 1. 5V).
6 #define LM35_PIN A0
7
8 void setup () {
9 Serial.begin (115200 );
10 }
11
12 void loop () {
13 int raw = analogRead(LM35_PIN);
14 float voltage = raw * 5.0 / 1023.0 ;
15 float tempC = voltage * 100.0 ; // 10mV/C -> volts*100 = degrees C
16
17 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
18
19 delay (500 );
20 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // Analog pin A0 on Arduino Nano. LM35 outputs 10mV per degree C, referenced to 0V, so it also happens to fit 3. 3V boards fine (max ~150C = 1. 5V).
6 #define LM35_PIN A0
7
8 void setup () {
9 Serial.begin (115200 );
10 }
11
12 void loop () {
13 int raw = analogRead(LM35_PIN);
14 float voltage = raw * 5.0 / 1023.0 ;
15 float tempC = voltage * 100.0 ; // 10mV/C -> volts*100 = degrees C
16
17 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
18
19 delay (500 );
20 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // Analog pin A0 on Arduino Mega. LM35 outputs 10mV per degree C, referenced to 0V, so it also happens to fit 3. 3V boards fine (max ~150C = 1. 5V).
6 #define LM35_PIN A0
7
8 void setup () {
9 Serial.begin (115200 );
10 }
11
12 void loop () {
13 int raw = analogRead(LM35_PIN);
14 float voltage = raw * 5.0 / 1023.0 ;
15 float tempC = voltage * 100.0 ; // 10mV/C -> volts*100 = degrees C
16
17 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
18
19 delay (500 );
20 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // Analog pin 34 on ESP32. LM35 outputs 10mV per degree C, referenced to 0V, so it also happens to fit 3. 3V boards fine (max ~150C = 1. 5V).
6 #define LM35_PIN 34
7
8 void setup () {
9 Serial.begin (115200 );
10 }
11
12 void loop () {
13 int raw = analogRead(LM35_PIN);
14 float voltage = raw * 3.3 / 4095.0 ;
15 float tempC = voltage * 100.0 ; // 10mV/C -> volts*100 = degrees C
16
17 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
18
19 delay (500 );
20 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // Analog pin A0 on ESP8266. LM35 outputs 10mV per degree C, referenced to 0V, so it also happens to fit 3. 3V boards fine (max ~150C = 1. 5V).
6 #define LM35_PIN A0
7
8 void setup () {
9 Serial.begin (115200 );
10 }
11
12 void loop () {
13 int raw = analogRead(LM35_PIN);
14 float voltage = raw * 3.3 / 1023.0 ;
15 float tempC = voltage * 100.0 ; // 10mV/C -> volts*100 = degrees C
16
17 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
18
19 delay (500 );
20 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // Analog pin PA0 on STM32. LM35 outputs 10mV per degree C, referenced to 0V, so it also happens to fit 3. 3V boards fine (max ~150C = 1. 5V).
6 #define LM35_PIN PA0
7
8 void setup () {
9 Serial.begin (115200 );
10 }
11
12 void loop () {
13 int raw = analogRead(LM35_PIN);
14 float voltage = raw * 3.3 / 4095.0 ;
15 float tempC = voltage * 100.0 ; // 10mV/C -> volts*100 = degrees C
16
17 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
18
19 delay (500 );
20 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // Analog pin 26 on Raspberry Pi Pico. LM35 outputs 10mV per degree C, referenced to 0V, so it also happens to fit 3. 3V boards fine (max ~150C = 1. 5V).
6 #define LM35_PIN 26
7
8 void setup () {
9 Serial.begin (115200 );
10 }
11
12 void loop () {
13 int raw = analogRead(LM35_PIN);
14 float voltage = raw * 3.3 / 4095.0 ;
15 float tempC = voltage * 100.0 ; // 10mV/C -> volts*100 = degrees C
16
17 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
18
19 delay (500 );
20 }
Project Notes: Analog precision temperature IC, 10mV/deg C.