I have one temperature sensor that provides values with 0.25 °C of resolution but has an accuracy of ± 3 °C.
So if I get 23.75 °C it could actually be anything between 26.75 °C and 20.75 °C. How can I specify this using the UserSensor.Builder()
?
Should I use setResolution()
? And what value should I provide? 6? 3? 0.25?
Edit
I just want to explain why this feature could be needed: I might have multiple sensors of the same kind, each with different accuracy, and I would like to take the one with better accuracy.
For example I can have my sensor, with resolution of 0.25 °C and an accuracy of ± 3 °C, and another temperature sensor with resolution of 0.5 but accuracy of ± 1 °C. I would like the system to pick the second sensor since the accuracy is better than the 1st one.