pH sensor not working correctly

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?

Please post a link to the sensor product page and wiring diagram, with pins and connections clearly labeled. Hand drawn is preferred.

Here's a link to the sensor from DF ROBOT. I'm using a Nano 33 IOT. The Vcc from the sensor is connected to the 3V pin on the Nano, the ground to ground and the sense wire from the sensor is connected to pin A1 of the Nano

Forgot to post the link to DF Robot product page, here it is: PH_meter_SKU__SEN0161_-DFRobot

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.