# Sensor calibration

**URL:** <https://community.gladysassistant.com/t/calibration-capteur/9116>\
**Category:** Configuration\
**Created:** [October 7, 2024, 2:49pm UTC](https://community.gladysassistant.com/t/calibration-capteur/9116 "2024-10-07T14:49:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prof\_Techno](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prof_techno/32/19038_2.png) [@Prof\_Techno](https://community.gladysassistant.com/u/Prof_Techno)\
**Post date:** [October 7, 2024, 2:49pm UTC](https://community.gladysassistant.com/t/calibration-capteur/9116/1 "2024-10-07T14:49:22Z")

</div>

Hello

So a quick/simple question: how do you calibrate your sensors to get a reliable measurement? Because if I put all my sensors on the same table I don’t get the same temperature or humidity.

I think that in MQTT I can change the value; I would need a reference, and that’s where I’d like your tips.

Thanks

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [October 7, 2024, 3:15pm UTC](https://community.gladysassistant.com/t/calibration-capteur/9116/2 "2024-10-07T15:15:11Z")

</div>

Hi,

Personally, I’ve never calibrated them. Is the difference large between all your sensors?  
Otherwise, indeed, the Z2M interface sometimes allows you to modify sensor values, but it’s very dependent on the models.

---

<div class="post-metadata">

**Author:** ![Prof\_Techno](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prof_techno/32/19038_2.png) [@Prof\_Techno](https://community.gladysassistant.com/u/Prof_Techno)\
**Post date:** [October 7, 2024, 4:48pm UTC](https://community.gladysassistant.com/t/calibration-capteur/9116/3 "2024-10-07T16:48:57Z")

</div>

So it’s not huge, but let’s say my perfectionist side, when two sensors are side by side, likes to have the same values.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [October 7, 2024, 5:23pm UTC](https://community.gladysassistant.com/t/calibration-capteur/9116/4 "2024-10-07T17:23:21Z")

</div>

Depending on the model you can perform a calibration directly in Zigbee2MQTT

Below is an example with an Aqara temperature sensor

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/9/b/9ba86457f90b0ba19e28237a2766886d5b7e30bd.png)

---

<div class="post-metadata">

**Author:** ![Prof\_Techno](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prof_techno/32/19038_2.png) [@Prof\_Techno](https://community.gladysassistant.com/u/Prof_Techno)\
**Post date:** [October 7, 2024, 5:57pm UTC](https://community.gladysassistant.com/t/calibration-capteur/9116/5 "2024-10-07T17:57:22Z")

</div>

I had found that, but it’s to get the correct value to correct.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [October 7, 2024, 6:01pm UTC](https://community.gladysassistant.com/t/calibration-capteur/9116/6 "2024-10-07T18:01:01Z")

</div>

The value is for you to find; each sensor is different, I think, and then you add/remove an offset to the temperature reading of your sensor.

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [October 8, 2024, 5:20am UTC](https://community.gladysassistant.com/t/calibration-capteur/9116/7 "2024-10-08T05:20:51Z")

</div>

To determine the correct value, I would say you have two options: either you have another device that you consider reliable and use it as a reference, or you calculate the average of all your sensors and use that average as the reference.

---

<div class="post-metadata">

**Author:** ![Prof\_Techno](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prof_techno/32/19038_2.png) [@Prof\_Techno](https://community.gladysassistant.com/u/Prof_Techno)\
**Post date:** [October 8, 2024, 10:58am UTC](https://community.gladysassistant.com/t/calibration-capteur/9116/8 "2024-10-08T10:58:43Z")

</div>

So I’ll do the averaging method because there’s no sensor more reliable than that at home — let’s say that out of 10 sensors that should be pretty good

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/e/c/ecefa5feb402e6816b91939d1943f6839a991fa4.png)  
we’ll just wait for it to stabilize

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [October 8, 2024, 11:18am UTC](https://community.gladysassistant.com/t/calibration-capteur/9116/9 "2024-10-08T11:18:39Z")

</div>

Honestly, given the differences, I wouldn’t bother calibrating everything.

---

<div class="post-metadata">

**Author:** ![Prof\_Techno](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prof_techno/32/19038_2.png) [@Prof\_Techno](https://community.gladysassistant.com/u/Prof_Techno)\
**Post date:** [October 8, 2024, 11:28am UTC](https://community.gladysassistant.com/t/calibration-capteur/9116/10 "2024-10-08T11:28:03Z")

</div>

my perfectionist side

but with humidity I have more variation, so I might as well do everything properly; it’s something you only have to do once, so no worries, and since for now I’m stuck on the pilot wire it keeps me occupied

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [October 8, 2024, 11:30am UTC](https://community.gladysassistant.com/t/calibration-capteur/9116/11 "2024-10-08T11:30:39Z")

</div>

I started explaining the pilot wire to you. I will continue tonight.
