pH sensor with Grove interface

hi everyone

I got a pH sensor from here

If I connect it to my GrovePi, I can get some data from the sensor with “grovepi.analogRead(ph_sensor)” line.

Can anyone give me a hint on how to translate this data into pH data in python?

The pH sensor that you are using is an I2C sensor and not an analog sensor. Right now we don;t have the éxample code for this sensor but it is possible to write the example code for it. You’ll have to port this example to python: .

From the looks of it, the implementations should be similar to the adc_read() function here: . You just have to request for 3 bytes, read them and parse them. You should directly call with 3 bytes and parse the data.