# Humidity bathrooms

I use a [Xiaomi Aqara temperature and humidity sensor](https://www.gearbest.com/access-control/pp_626702.html) in each bathroom, and I also have a Netatmo indoor station that I use to correlate.

I keep an humdiff variable updated for each bathroom, which should be the humidity in the bathroom minus the humidity in the living room.

![](https://1587494504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ltn3vQOSB-YGC6qLZu_%2F-Ltp9NvghVGYg9_8YcLx%2F-Ltp9lWIeVMfy72P4tVl%2FSkjermbilde%202019-11-16%20kl.%2018.03.03.png?alt=media\&token=b9b95fd4-f04f-4d75-a0d2-967c6bd37e6d)

Then for each bathroom, I update a vent-hum-bad1 boolean variable to indicate whether the humidity level is sufficiently higher than the reference in order to trigger ventilation:

![](https://1587494504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ltn3vQOSB-YGC6qLZu_%2F-Ltp9NvghVGYg9_8YcLx%2F-LtpA5X6grIYivvLsyOY%2FSkjermbilde%202019-11-16%20kl.%2018.04.32.png?alt=media\&token=4b6dbe68-1ac6-4ccb-82aa-c939d4683caf)

Here is an example of insight of the humdiff variable after a shower. It triggered ventilation to run on high for about an hour.

![Humidity in bathroom1 compared to a reference, after a shower](https://1587494504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ltn3vQOSB-YGC6qLZu_%2F-LtpA7f0gPA_Ovpo2toM%2F-LtpATvf9ala5ebcHf7K%2FSkjermbilde%202019-11-16%20kl.%2018.06.08.png?alt=media\&token=113cd600-b00e-4a9a-858c-5c9d28c166e4)
