Am loving the Rainbow HAT that was gifted to me and I want to use it as a baby monitor to monitor temperature. However, the readings are quite off and I’ve seen that the Pi CPU is close to the sensor so it doesn’t give an accurate reading. I’ve looked online for formulas offsetting the temperature using:
corrected temp. = measured temp. - (CPU temp. - measured temp.) / 2
from the product page
Ta = (Tm -C * Tc) / (1 -C) Ta - actual temp Tm - measured temp Tc - CPU temp
but if there’s a spike load on CPU, it’s not accurate. Any suggestions? Am using the python library.
I’ve also come across Paul Blundell’s Android Things post, does the python library use the same compensation formula outlined there? https://github.com/blundell/androidthings-i2c-input/blob/72ab4826b1ce02789ec4a1ed50f7815312fd42b8/app/src/main/java/com/blundell/tut/Bmp280DataSheet.java#L38