Grove I2C Thermocouple Amplifier (MCP9600) Errors

Hi!

Right now, I am just trying to get the example code to work. The code that I am trying to use is the basic demo code below.

#include "Seeed_MCP9600.h"

#ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE
#define SERIAL SerialUSB
#else
#define SERIAL Serial
#endif

MCP9600 sensor;

err_t sensor_basic_config() {
err_t ret = NO_ERROR;
CHECK_RESULT(ret, sensor.set_filt_coefficients(FILT_MID));
CHECK_RESULT(ret, sensor.set_cold_junc_resolution(COLD_JUNC_RESOLUTION_0_25));
CHECK_RESULT(ret, sensor.set_ADC_meas_resolution(ADC_14BIT_RESOLUTION));
CHECK_RESULT(ret, sensor.set_burst_mode_samp(BURST_32_SAMPLE));
CHECK_RESULT(ret, sensor.set_sensor_mode(NORMAL_OPERATION));
return ret;
}

err_t get_temperature(float* value) {
err_t ret = NO_ERROR;
float hot_junc = 0;
float junc_delta = 0;
float cold_junc = 0;
CHECK_RESULT(ret, sensor.read_hot_junc(&hot_junc));
CHECK_RESULT(ret, sensor.read_junc_temp_delta(&junc_delta));

CHECK_RESULT(ret, sensor.read_cold_junc(&cold_junc));

// SERIAL.print("hot junc=");
// SERIAL.println(hot_junc);
// SERIAL.print("junc_delta=");
// SERIAL.println(junc_delta);
// SERIAL.print("cold_junc=");
// SERIAL.println(cold_junc);

*value = hot_junc;

return ret;

}

void setup() {
SERIAL.begin(115200);
delay(10);
SERIAL.println("serial start!!");
if (sensor.init(THER_TYPE_K)) {
SERIAL.println("sensor init failed!!");
}
sensor_basic_config();
}

void loop() {
float temp = 0;
get_temperature(&temp);
SERIAL.print("temperature ===================>");
SERIAL.println(temp);
SERIAL.println(" ");
SERIAL.println(" ");
delay(1000);
}

Here is a link to the amplifier which links to documentation.

Again, the error that I get is "note: this is the location of the previous definition
#define SERIAL 0x0".