This message was posted on behalf of Intel Corporation1 of 1 people found this helpful
From the GitHub link that you shared, I understand that there are some limitations with the sensor so it may or may not work as expected. It seems from the comments in that site that the best known configuration for this sensor is to configure the Edison Arduino board to work at 3.3V while the sensor is working at 5V, and the I2C bus is only used for this sensor. This doesn’t mean that it will work without issues but from the experiences of other users, this configuration is the one that provides the best results.
On the other hand, according to your description, your sensor works fine only in a specific temperature range for some few minutes. This means that the code works fine and your hardware setup is fine too, otherwise it would not work from the very beginning. What I can think of is that maybe there is some issue with the sensor itself that makes it to report wrong values after some minutes. This is very unlikely, but it could be a possibility. Other possibility is that the sensor is not well calibrated. I recommend you to check the datasheet of the sensor to get details about how it should be calibrated. There are temperature sensors that require some few external components like a resistor to be well calibrated (I’m not sure if this is the case with this sensor).
These are all my comments for you. I don’t have that sensor so I cannot run additional tests to compare my results with yours.
I hope it helps.