In finding the pH value of a liquid/Soil, what is the range of Offset voltage value that I can use in my code?
Using / calibrating pH sensor module
I considered the above link as a reference. But I didn't come to know the range of Offset Value...
Here is the logic below to find the value of pH right...
avgValue = 0;
for (int i=2;i<8;i++) // take the average value of 6 center sample
avgValue+=buf[i];
float phValue = (float)avgValue*5.0/1024/6; // convert the analog into millivolt
phValue=3.5*phValue+Offset;
What is the range of Offset value can I use in the above/my code?
Thanks in Advance