Hello, I have a problem with the temperature measurement on Nicla Sense ME. When I read the temperature value (normal and BSEC), a distorted value comes out, which is slightly above the real value. I have already found this post in the forum where a software update was suggested from @BSTRobin . However, this does not fix the error (they only addded a wrong offest), moreover, with this program the microcontroller crashes after a short time. Also the linear regression mentioned in the post doesnt fix my problem. Since this is a relatively expensive item, I expect that there must be a solution for this temperature offset. I used the program "Standalone" from the official library for testing. I also used this programm to measure the temperature and the BSEC. #include "Arduino.h"
#include "Arduino_BHY2.h"
Sensor temp(SENSOR_ID_TEMP);
SensorBSEC bsec(SENSOR_ID_BSEC);
void setup()
{
Serial.begin(115200);
while(!Serial);
BHY2.begin();
temp.begin();
bsec.begin();
}
void loop()
{
static auto printTime = millis();
// Update function should be continuously polled
BHY2.update();
if (millis() - printTime >= 1000) {
printTime = millis();
Serial.println(String("temperature: ") + String(temp.value(),3));
Serial.println(String("bsec: ") + bsec.toString());
}
} I look forward to your help!
... View more