@electrik ..and then just adjust the volts/bit for 3.3 rather than 1.1v, correct? (i.e x3). That fixed it, thank you.
BUT presented a weird problem. The analogRead gives a proper value but the math then is not working and I cant figure it out. I did the calculations myself and get a proper result:
int _nominal_resistor2 = 10000;
int _nominal_temperature2 = 25;
int _b_coefficient2 = 3950;
int _series_resistor2 = 10000;
int adcTmm = analogRead(THMR_PIN);
Serial.println(adcTmm);
float readingSau = (1023 / adcTmm) - 1;
readingSau = _series_resistor2 / readingSau;
float temperatureS = readingSau / _nominal_resistor2; // (R/Ro)
temperatureS = log(temperatureS); // ln(R/Ro)
temperatureS /= _b_coefficient2; // 1/B * ln(R/Ro)
temperatureS += 1.0 / (_nominal_temperature2 + 273.15); // + (1/To)
temperatureS = 1.0 / temperatureS; // Invert
temperatureS -= 273.15; // convert to C
send(msgTempSau.set((int16_t)temperatureS, 2));
Serial.print("Sauna T: ");
Serial.print(temperatureS);
Serial.println(" C");
But still the serial monitor shows:
7409 MCO:SLP:WUP=1
7413 TSF:TRI:TSB
Sauna door: 1
7430 TSF:MSG:SEND,21-21-10-0,s=3,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
7966 TSF:MSG:SEND,21-21-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:29.00
Shower T: 29.00
7989 TSF:MSG:SEND,21-21-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:87.0
Shower H: 87.00
536
8005 TSF:MSG:SEND,21-21-10-0,s=16,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:-273.00
Sauna T: -273.15 C
Sauna off, sleeping 30min
Battery Voltage: 4.22 V Battery percent: 97.70 %
8028 TSF:MSG:SEND,21-21-10-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:97
8097 MCO:SLP:MS=1800000,SMS=0,I1=1,M1=1,I2=255,M2=255
8108 TSF:TDI:TSL
I changed variable names to account there wouldnt be overlap with DHT library & dht part of sketch.