Board is placed inside a wall, and sensors are one for each room (two rooms share the same wall).
The sensors in a way similar to this:
![Image](https://i.ibb.co/dKChC6v/120804671-10158716232256635-7814682184835126399-n.jpg)
Before sending the value via MQTT I'm calculating the average from 10 readings like so:
Code: Select all
On Kitchen#Temperature Do
Let,10,[VAR#9]
Let,9,[VAR#8]
Let,8,[VAR#7]
Let,7,[VAR#6]
Let,6,[VAR#5]
Let,5,[VAR#4]
Let,4,[VAR#3]
Let,3,[VAR#2]
Let,2,[VAR#1]
Let,1,[Kitchen#Temperature]
TaskValueSet,3,1,([VAR#1]+[VAR#2]+[VAR#3]+[VAR#4]+[VAR#5]+[VAR#6]+[VAR#7]+[VAR#8]+[VAR#9]+[VAR#10])/10
EndOn
The communication works, but after looking at the reading I've noticed weird behavior:
![Image](https://i.ibb.co/m6Y8M0v/8195233450307152615.jpg)
![Image](https://i.ibb.co/LnLsC5G/Temp3-Salon.png)
When we leave the house there are -2 degrees readings and when we return there are +2 readings.
I've replaced the sensors with new ones (also genuine) and I have the same behavior.
I have no idea what can be the cause of this. No one isn't touching the sensors or blowing hot air at them. When the light are turn on or off I have the same readings, so the electrical switch can't be the cause.
I know DS18B20 are very accured, but I'm sure they can't detect person leaving or entering the house
![Erg Blij :D](./images/smilies/icon_e_biggrin.gif)
Not sure what can be the cause of this "issue".
Any advice is more than welcome.