Anyone has got this module working on Due?

Today i did some tests on this sensor with due. I connected analog out to S pin in middle i connected power 3.3v and in (-) pin i connected gnd. Because that module is like voltage divider and you can see that between S pin and mid are 10k resistor.

Code now looks like this :

`double Thermister(int RawADC) {`

double Temp,Vo;

Vo=float(RawADC)*(3.3/4095);

Temp = log(10000*(3.3/Vo-1));

//Temp = log(((10240000/RawADC) - 10000));

Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp ))* Temp );

Temp = Temp - 273.15;// Convert Kelvin to Celcius

return Temp;

}

I am using 12 bit precission. And getting ~29-32C(need something like 20). When i measure out pin with tester i get ~1.6 volts but with arduino converting i get 2.26v. Maybe my tester is wrong

volt=float(analogRead(A1))*(3.3/4095); // conversion to volts