int LM35Pin = 15;   
int digitalVal;  // variable to store the value coming from the sensor
float analogVolt;
float temp;

void setup() {
  Serial.begin(9600);
  Serial.println("LM35 TEST!");
}

void loop() {
  delay(2000); 
  //analog value into digital value using ADC converter
  digitalVal = analogRead(LM35Pin);
  Serial.print("digital value = ");
  Serial.print(digitalVal);   
  //convert digital value to analog voltage : Analog voltage = digital val * (Vref/2^n – 1)
  //Vref=3.3v OR 5v , 10 bit ADC so n=10 bits so the values ranges from 0 to 1023
  analogVolt = (digitalVal * 5.00)/1023.00; 
  Serial.print("  analog voltage = ");
  Serial.println(analogVolt);
  temp=analogVolt * 100; //coz LM35 output is 0.010V per degree. ie 1 degree =0.010V or 1V=100 degree
  Serial.print("temperature = ");
  Serial.print(temp);
  Serial.println(" °C");  
  delay(5000);
}
Loading
esp32-s3-devkitc-1
ntc1:GND
ntc1:VCC
ntc1:OUT