//const int rx=6; //const int tx=7; const int tpin=3; //SoftwareSerial mySerial(rx,tx); void setup() { Serial.begin(9600); Serial.println(0000); } void loop() { int t; t=analogRead(tpin); float tc=calcT(t); Serial.println(t); delay(100); } float calcT(int data) { float B=3750; float T0=298.15; float R0=10000.0; float R1=11200.0; float rr1,t; rr1= R1 * data / (1024.0 - data); t = 1 / (log(rr1 / R0) / B + (1 / T0)); return (float)(t - 273.15); }