Hello
I recently purchased the Grove Oxygen sensor with the additional hardware suggested in the page below
https://wiki.seeedstudio.com/Grove-Oxygen-Sensor-Pro/.
The problem is that when i try to upload the code provided on the page to seeeduino it gives me the error code below and I have found no information as to what is wrong with it.
C:\.arduinoIDE-unsaved202366-4108-qmci00.1pyx\sketch_jul6a\sketch_jul6a.ino: In function 'void setup()':
C:\.arduinoIDE-unsaved202366-4108-qmci00.1pyx\sketch_jul6a\sketch_jul6a.ino:3:3: error: 'Serial2' was not declared in this scope
   Serial2.begin(9600);
   ^~~~~~~
C:\.arduinoIDE-unsaved202366-4108-qmci00.1pyx\sketch_jul6a\sketch_jul6a.ino:3:3: note: suggested alternative: 'Serial'
   Serial2.begin(9600);
   ^~~~~~~
   Serial
C:\.arduinoIDE-unsaved202366-4108-qmci00.1pyx\sketch_jul6a\sketch_jul6a.ino: In function 'void loop()':
C:\.arduinoIDE-unsaved202366-4108-qmci00.1pyx\sketch_jul6a\sketch_jul6a.ino:6:7: error: 'Serial2' was not declared in this scope
   if (Serial2.available()){
       ^~~~~~~
C:\.arduinoIDE-unsaved202366-4108-qmci00.1pyx\sketch_jul6a\sketch_jul6a.ino:6:7: note: suggested alternative: 'Serial'
   if (Serial2.available()){
       ^~~~~~~
       Serial
C:\.arduinoIDE-unsaved202366-4108-qmci00.1pyx\sketch_jul6a\sketch_jul6a.ino:34:11: error: 'Serial2' was not declared in this scope
     while(Serial2.read()>=0);    //clear buffer
           ^~~~~~~
C:\.arduinoIDE-unsaved202366-4108-qmci00.1pyx\sketch_jul6a\sketch_jul6a.ino:34:11: note: suggested alternative: 'Serial'
     while(Serial2.read()>=0);    //clear buffer
           ^~~~~~~
           Serial
exit status 1
Compilation error: 'Serial2' was not declared in this scope
The other weird thing is i tried using the demo code from another oxygen sensor provided by seeed
https://wiki.seeedstudio.com/Grove-Gas_Sensor-O2/. Weirdly enough the code is uploading and seems to work, although it always reads only one value (20,9%) even if i put it in an environment with 1% oxygen
PS. In both cases tried both voltage outputs from the base shield, it always gives the same results
