Hi everyone,
I have a Gravity oxygen sensor connected to a MKR1000. I used the sample code in the library for the sensor alone and the code runs fine. When I copy the code into the sketch for the board configured online I have issues. It seems I will get 2 lines of the value on my serial monitor and than it forces a reset, it is also not updating the value on my thing I created which is o2. I have the thing setup to update every 15s. Below is the code I am running. If I remove the line o2 = oxygen.getOxygenData(COLLECT_NUMBER); it runs fine, but I don't get a value because I'm not reading the sensor anymore.
void loop() {
ArduinoCloud.update();
// Your code here
o2 = oxygen.getOxygenData(COLLECT_NUMBER);
Serial.print(" oxygen concentration is ");
Serial.print(o2);
Serial.println(" %vol");
delay(1000);
}