To calibrate my temperature and humidity sensors, I placed them inside a glass jar and calculated their average value.
Then I calibrated each one to match this average value. This is good enough in my opinion for home automation purposes.
Advertisement Begins
Advertisement End
How to determine the adjustment value for each sensor
Let $$s_n$$ be each sensors current value in degrees C. Calculate the average value of all sensor readings using $$ave = average(s_1, s_2, s_3, s_n)$$. The calibration value can then be derived using:
This $$\delta$$ adjustment value should be added to each sensor using value_template
. I amended my template to round to 1 decimal place.
# Bed Room
- platform: mqtt
name: "Bedroom Temp"
friendly_name: "Temperature"
device_class: temperature
state_topic: "tele/son_bedroom_lamp/SENSOR"
value_template: "{{ ( value_json.AM2301.Temperature | float + 0.2) | round(1) }}"
unit_of_measurement: "°C"
- platform: mqtt
name: "Bedroom Hum"
friendly_name: "Humidity"
device_class: humidity
state_topic: "tele/son_bedroom_lamp/SENSOR"
value_template: "{{ ( value_json.AM2301.Humidity | float - 2.1 ) | round(1) }}"
unit_of_measurement: "Hum %"
Kitchen Multi-Timer Pro
Now you’re cooking
Multi Timer Pro is your ultimate meal prep companion, keeping track of multiple cooking times and making adjustments on the fly. Give it a try today and become a better home cook!
The final values will not be exactly the same because each sensor’s decimal threshold is different. (The threshold is when a sensor would tick over from, say, 25.5C to 25.6C)
MY MISSION
This blog started nearly 10 years ago to help me document my technical adventures in home automation and various side projects. Since then, my audience has grown significantly thanks to readers like you.
While blog content can be incredibly valuable to visitors, it’s difficult for bloggers to capture any of that value – and we still have to work for a living too. There are many ways to support my efforts should you choose to do so:
Consider joining my newsletter or shouting a coffee to help with research, drafting, crafting and publishing of new content or the costs of web hosting.
It would mean the world if gave my Android App a go or left a 5-star review on Google Play. You may also participate in feature voting to shape the apps future.
Alternatively, leave the gift of feedback, visit my Etsy Store or share a post you liked with someone who may be interested. All helps spread the word.
BTC network: 32jWFfkMQQ6o4dJMpiWVdZzSwjRsSUMCk6