I'm building a hydroponic monitoring system and have air temp, relative humidity, solution temp, and TDS all working fine. trying to add the Gravity pH Meter V2 using analog pin A1. I'm not getting good readings from this sensor. They remain the same no matter what solution the probe is in and don't change when i disconnect the lead to A1. Here's the simple code I'm trying to verify that the sensor is working correctly.
#include <Arduino.h>
const int adcPin = A1;
void setup() {
Serial.begin(115200);
}
void loop() {
int adcValue = analogRead(adcPin);
float phVoltage = (float)adcValue * 5.0 / 1024;
Serial.print("ADC = "); Serial.print(adcValue);
Serial.print("; Po = "); Serial.println(phVoltage, 3);
delay(1000);
}
Am I doing something wrong or is this sensor shot?