const int PT1000_PIN = A0;
const float vt_factor = 1.88;
const float offset = 0;
float temp_c;
void setup() {
Serial.begin(9600);
}
void loop() {
int sensorvalue = analogRead(PT1000_PIN);
float voltage = sensorvalue * (5.0 / 1023.0);
temp_c = (((voltage * 100) / vt_factor) + offset);
Serial.print(voltage);
Serial.print(" V Temp: ");
Serial.println(temp_c, 1);
delay(500);
}