int pinLed = 12;
int pinPot = A5;
float valorMaxSal = 100.0;
float valorMaxEnt = 1023.0;
float valorMaxSal = 80.0;
float valorMinSal = 20.0;
void setup() {
// put your setup code here, to run once:
pinMode(pinLed, OUTPUT);
pinMode(pinPot, INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int valorPote = analogRead(pinPot)
float temperatura = (valorPote*(valorMaxSal-valorMinSal)/valorMaxEnt)+valorMinSal;
Serial.println("El valor de la temperatura es");
Serial.println(temperatura);
delay(500);
}