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:
- 1 x LM35DZ Temperature Sensor
Arduino code
//https://ekostra.com
#define ADC_VREF_mV 5000.0 // in millivolt
#define ADC_RESOLUTION 1024.0
#define PIN_LM35 A0
void setup() {
Serial.begin(9600);
}
void loop() {
// get the ADC value from the temperature sensor
int adcVal = analogRead(PIN_LM35);
// convert the ADC value to voltage in millivolt
float milliVolt = adcVal * (ADC_VREF_mV / ADC_RESOLUTION);
// convert the voltage to the temperature in Celsius
float tempC = milliVolt / 10;
// convert the Celsius to Fahrenheit
float tempF = tempC * 9 / 5 + 32;
// print the temperature in the Serial Monitor:
Serial.print("Temperature: ");
Serial.print(tempC); // print the temperature in Celsius
Serial.print("°C");
Serial.print(" ~ "); // separator between Celsius and Fahrenheit
Serial.print(tempF); // print the temperature in Fahrenheit
Serial.println("°F");
delay(1000);
}
Reviews
Clear filtersThere are no reviews yet.