after converting the raw reading from the mpu6050 to degrees C using the following formula Temp / 340.00 + 36.53 that I found online, the results seems to be off by two degrees. the person that used the formula says its from the datasheet but I wasn't able to find it in the datasheet, im just wondering if there is something im doing wrong that is causing the temp be off by 2 degrees
My question when I see that sensor's value is off, is always "how do you know?" Presumably you're comparing it to another sensor, but how do you know which is correct? Or have you got more than one in agreement and one odd?
Bear in mind it is also the temperature within the chip.
You don't say if your result is higher or lower than your other value, but the internal chip temp could easily be a few degrees warmer than ambient. Maybe more if it's busy.
From the MPU6050 data sheet:
Range -40 to +85 °C
Sensitivity Untrimmed 340 LSB/ºC
Temperature Offset 35 °C -521 LSB
Linearity Best fit straight line (-40°C to +85°C) ±1 °C
im comparing the result to two different thermostat that have the same reading