i have final project on uni, and i use DS18B20 as my final project. I try to calibrate this sensor and i use termometer as my "reference". I use w1thermsensor to the sensor.
so, here the problem. let's say Ds18b20 give me result 23.7 celsius and termometer is 22.9 celsius. I use simple math on python, 23.7 - xxxx number = 22.9 celsius (just like on termometer ), but my teacher said "it's wrong!. This is not how you calibrate sensor. You need to make functio (not programing function, but math function )". The question is, how to calibrate this sensor corectly ?
should i take average number from 10 data ( as example ) ?
or i should take "median" number from same data ?
thanks for your help.