Temperature Sensor v1.1 incorrect temp values

Just tried a few other twigs & all are giving the same but incorrect values.

I need to get my hands on a v1.0 (& v1.2) twig again & compare results - taking into account potential different values for B

I guess my question is - has anyone been successful in getting the correct values from using this version of the temperature sensor twig?

The code I’m using is the sample one from the wiki;

#include <math.h>
int a;
float temperature;
int B=4250; //B value of the thermistor
float resistance;

void setup()
{
Serial.begin(9600);
}

void loop()
{
a=analogRead(0);
resistance=(float)(1023-a)*10000/a; //get the resistance of the sensor;
temperature=1/(log(resistance/10000)/B+1/298.15)-273.15;//convert to temperature via datasheet ;
delay(1000);
Serial.print("Current temperature is ");
Serial.println(temperature);
}