# Temperature Compensation for conductivity measurement?

Hey guys, I have developed a circuit that measures the conductivity of a liquid with two probes. As you might know, condcutivity is highly dependant on temperature. For this reason, my reading vary greatly under varying temperature conditions. The sensor outputs a reading from 0 to 5V. 5V meaning open circuit and 0 meaning short circuit. How can I integrate a temperature compensator to this project?

My problem is, a liquid at 25Celsius may give 2.5V of reading, however, a different type of liquid at 30Celsius may also give 2.5V of reading.

My main goal is to find a balanced temperature(the nominal operating temperature of the system), and apply compensation at any other temperature.

P.S: I am measuring the temperature with an NTC.

My code is as simple as an AnalogRead function, so didn't need to post it.

You need to know the relationship between temperature and conductivity for each liquid you are measuring, then you need to encode that relationship in a mathematical formula, or alternatively have a table of compensation values Vs temperature, and apply the relationship to the measured value.

I got your point. Is there a more simplistic approach like;