I'm trying to solve for the resistance of T in the circuit. It's a thermistor (car coolant) that varies from 20k at low temps to 100ohms at high temps. The circuit diagram shows the A0 and A1 values being returned by arduino in my test circuit. The left voltage divider is the thermistor, and the right one is to serve as a reference voltage of the highest expected voltage.

I've already got the thermistor formulas, so that's not my issue - my issue is figuring out the proper formula to solve for T.

My application is vehicle coolant temp, so my source voltage is 12v, which is why the large resistor values. I've tried using AREF external, but I like the idea of being able to see what's going on with my reference voltage and calculate it manually.

Can anyone tell me how to solve for T, knowing R1(left), A0, R1, R2, and A1? I spent all day on this yesterday and could really use some help. Thanks again.

Thank you very much for taking the time to work that out for me, it is much appreciated. I was unable to solve that on my own and was able to get it to work with a slightly different approach - I consulted with a very smart friend today who is better than I am at algebra, but he could not condense it down to a simple ratio.

You did manage to do it, however I cannot get your final equation to return a correct result in my code, so I suspect there is an error somewhere, either in my approach, or your formula. I appreciate your effort, but since this forum is used as a reference for lots of things, I thought I'd let you know so nobody else grabs it without further testing.

I've since upgraded to a 16-bit ADC and am getting the proper results by using the voltage divider on the right to establish exactly what vin is, then using that to solve for T in the left voltage divider, in two separate equations.

A0 and A1 are swapped places as drawn in my circuit diagram now and in this example code, so don't get confused by that. It's adapted from an adafruit example. I've also input the exact resistor values in the appropriate places in the code. It's returning a result within 1 ohm of being a correct result, so I'm satisfied with that. I need to do some cleanup on it and incorporate it into my larger project. I'd be willing to try further condensing it down using your formula, but at this point I'm satisfied and can move on as well.