Home › Forums › Environmental Sensors › PH Sensor Issue › Reply To: PH Sensor Issue
2019-07-18 at 4:20 PM
#12976
Also, you need to use 3.3 volts as the board voltage in your conversion formula and not 5.0 volts. And if you’re measuring a 50/50 voltage divider, you’ll then need to double the measured voltage to get the true sensor voltage. So:
float voltage = (sensorValue * (3.3 / 1023.0)) * 2.0;