Interface LM35 temperature sensor

Solving Approach:

How do you plan to solve it?

 

 

Code

/*Paste your code here*/
#define Vout A0
float ref_voltage = 5 * (3.3 / 13.3);
void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  int ADC_tm = analogRead(Vout);
  float voltage = (float) ADC_tm / 1023 * 5 - ref_voltage;
  float temp = voltage * 100;
  Serial.print("Temperature: ");
  Serial.println(temp);
  delay(500);
}

Output

Video

Add video of output (know more)

 

 

 

 

 

Photo of Output

Add a photo of your hardware showing the output.

 

 

 

 

Upvote
Downvote

Submit Your Solution

Note: Once submitted, your solution goes public, helping others learn from your approach!