const int TempPin = A1; //Connect the Pin void setup() { Serial.begin(9600); } void loop() { // Read the analogic value int valeurTemp = analogRead(TempPin); Serial.println(valeurTemp); //Convertion //float intensiteTemp = map(valeurTemp, -40, 3750, 0, 125); //Use this method for an int float intensiteTemp = (valeurTemp - (-40.0)) * (125.0 - 0.0) / (3750.0 - (-40.0)) + 0.0; //Use this method for a float //Print the value Serial.print("T : "); Serial.print(100-intensiteTemp, 2); Serial.println(" C"); delay(1000); }