const int NTCPin=A0;
int NTCValue=0;
void setup()
{
Serial.begin(9600);
}
void loop()
{
NTCValue=analogRead(NTCPin);
float degreeC =1/(log(1/(1023./NTCValue - 1))/3950 + 1.0/298.15)-273.15;
Serial.println(degreeC);
}const int NTCPin=A0;
int NTCValue=0;
void setup()
{
Serial.begin(9600);
}
void loop()
{
NTCValue=analogRead(NTCPin);
float degreeC =1/(log(1/(1023./NTCValue - 1))/3950 + 1.0/298.15)-273.15;
Serial.println(degreeC);
}