//Date: 04.11.2025
//Name: Rajaram Parida
//Redg: 2241016203
//Section: 28
//Exp. No.: 2.2
const int sensorPin = A0;
int sensorValue = 0;
float temperatureC = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
sensorValue = analogRead(sensorPin);
float voltage = (sensorValue * 5.0) / 1023.0;
temperatureC = voltage * 100;
Serial.print("Temperature: ");
Serial.print(temperatureC);
Serial.println(" °C");
delay(1000);
}