# New bathroom ideas

**URL:** https://discourse.nodered.org/t/new-bathroom-ideas/19980
**Category:** General
**Created:** [6 January 2020 18:35 UTC](https://discourse.nodered.org/t/new-bathroom-ideas/19980 "2020-01-06T18:35:16Z")
**Posts on this page:** 1
**Showing post:** 59

<div class="post-metadata">

### Author: ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)
#### Post date: [9 January 2020 07:53 UTC](https://discourse.nodered.org/t/new-bathroom-ideas/19980/59 "2020-01-09T07:53:15Z")

</div>

> [@Christian-Me](#):
>
> This is cause by the so-called **dew point shift**.The drew point is the temperature where the water in the air (steam) condensates to liquid water

You nailed it. This is the key point to keep track of. I have been monitoring this since years in certain areas in hour house (in the ground and in the attic) using sensors and related logic in Node-RED (earlier with EventGhost). I'm measuring the temperature & relative humidity, calculating the delta (difference from actual temperature to dew point). If delta goes negative there is a problem. Luckily we have never had any condensation so far, I have also verified this regularly with an instrument checking the relative humidity in the wooden construction. It might be surprising but highest risk is during warm summer days, at least here in the Nordics. Reason is because warm air can carry more water and when the air is cooled down (entering the ground or attic), the dew point is reached earlier

Many times you hear people are scared due to high relative humidity but is is not necessary dangerous with high relative humidity alone, it is condensation that is. So monitoring the relative humidity is not enough, you have to calculate the dew point (and delta) to know if you are close to condensation or not

This is my javascript code I use in a function node in Node-RED to calculate the delta:

```auto
// See: http://arduinotronics.blogspot.co.uk/2013/12/temp-humidity-w-dew-point-calcualtions.html
// delta max = 0.6544 wrt dewPoint()
// 6.9 x faster than dewPoint()
// reference: http://en.wikipedia.org/wiki/Dew_point
function dewPointFast(celsius, humidity) {
    var a = 17.271;
    var b = 237.7;
    var temp = Math.log(humidity * 0.01) + ((a * celsius) / (b + celsius));
    var Td = (b * temp) / (a - temp);
    return (celsius - Td).toPrecision(4);
}

```

---

_[View the full topic](https://discourse.nodered.org/t/new-bathroom-ideas/19980)._
