Dissolved Oxygen Sensor

Hi

I am trying to get the values form the dissolved oxygen sensor using the below sample code

I am not receiving any values from the sensor.

I can see the blue color led in the DO circuit but not getting values.

Can any one please help me on this.

DO Sample code.txt (4.47 KB)

Please post or link the data sheet for the sensor.

Or at least change the comments to be more specific about the hardware than "the Atlas Scientific product"!!

As your sketch is just a pipe through application it depends very much on what you send from the PC if the sensor is able to answer. And as your sketch does nothing than piping characters through, remove the end of line detection and send each character as it arrives. This way you'll see what the sensor may answer even if there's no CR character. If you still don't receive anything, post an image of your cabling.

I guess you're using this board: http://www.atlas-scientific.com/_files/_datasheets/_circuit/DO_EZO_Datasheet.pdf. It's your job to provide such links!

Does the device show up on an I2C scanner? If not, check your wiring.

I had a similar requirement and I found out that Atlas Scientific Sensors have problems in configuration and accuracy:

https://forum.arduino.cc/index.php?topic=487535.0

Instead I would be going for this one instead

Looks much more reliable