Cant I get Stable Value in 52AB LM35DZ With Arduino?

I have 52AB LM35DZ sensor but cant getting stable output value how can I do it?

#define LM35 A0
float temp=0;
void setup() {
  Serial.begin(9600);
}

void loop() {
  temp=analogRead(LM35);
  temp=float(temp *0.488);
  Serial.println(temp);
  delay(500);
}

Project Schema

Post project schematic.

1 Like

The first thing I would do is read the data sheet, it explains how to connect it. The data sheet is at: https://www.ti.com/lit/ds/symlink/lm35.pdf
Hint section 7.1 has your answer.

@gilshultz I look datasheet. not working

I set up the same as your project and below are the printouts.
Variations of 0.5 °C.
As written in the datasheet: "0.5°C Ensured Accuracy (at 25°C)"

A 0.1uF ("100nF") decoupling capacitor on V-in works wonders.

the lm35 I use is 52ABLM35DZ. Not only the lm35. @ruilviana When I use only the one that says lm35, the values are as in your screen. I want to know why 52ABLM35DZ is playing like this and what I should do to make it stable.

@runaway_pancake I connected V-in 100nF but the situation did not change.

I couldn't find the 52ABLM35DZ datasheet.
Please post 52ABLM35DZ datasheet link.

BTW my sensor is LM35DZ.

@ruilviana Exactly the same pins and voltages as the lm35 we know, but this is the cheaper version.

Then it ain't.

There are articles on the Internet that claim that this batch number is mislabeled and it is actually a transistor.

This has been discussed before, but it didn't work for me.

Well, I'm sorry you are stuck with mislabeled parts. It pays to stick with reliable suppliers.

Please post 52ABLM35DZ datasheet link.

Or vendor link.

Or get out the DMM, select the diode test function, and see if it is a transistor.

@ruilviana https://www.google.com/url?q=https://www.ti.com/lit/ds/symlink/lm35.pdf&sa=U&ved=2ahUKEwjYjITosMuDAxWeevEDHa3YCWwQFnoECAoQAg&usg=AOvVaw3vF9zzqhs93lQ2YHePEXRe

This is LM35xx datasheet, not 52ABLM35DZ datasheet.

I think @EmilyJane is correct!!!!!!

Take the test recommended by @runaway_pancake .

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.