const int LM35_PIN = A0;
void setup() {
Serial.begin(9600);
}
void loop() {
int analogValue = analogRead(LM35_PIN);
float voltage = analogValue * (5000.0 / 1023.0);
float temperature = voltage / 10.0;
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
delay(1000);
}