# How do I incorporate the hysteresis effect in a control flow?

**URL:** <https://discourse.nodered.org/t/how-do-i-incorporate-the-hysteresis-effect-in-a-control-flow/60466>\
**Category:** General\
**Created:** [28 March 2022 16:46 UTC](https://discourse.nodered.org/t/how-do-i-incorporate-the-hysteresis-effect-in-a-control-flow/60466 "2022-03-28T16:46:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [28 March 2022 18:26 UTC](https://discourse.nodered.org/t/how-do-i-incorporate-the-hysteresis-effect-in-a-control-flow/60466/4 "2022-03-28T18:26:00Z")

</div>

I still don't really understand what you are trying to do.

Is the variable Y the upper limit for your temperature comparison and X is the lower limit??

So the sort of checks you want to do are... IF temperature \> Y  
and another check is IF temperature \< X

This is a very similar question to what you posted in...

> [@Hello everyone pls some help](https://discourse.nodered.org/t/hello-everyone-pls-some-help/60265):
>
> Hello everyone relaxed pls could anyone help me cause I'm really stuck I have an esp8266 paired with dht11 it measured temperature in the room and send to a raspberry pi 3 through the mqtt broker my main problem is I want to creat a fonction in node red to on or off the air conditioner through a topic for example if it \>= 30 it gonna send on in the topic. I tried alot but cause I luck experience I didn't made it smiling_face_with_tear

Are you trying to incorpoarte a hysteresis effect in your control system?

---

_[View the full topic](https://discourse.nodered.org/t/how-do-i-incorporate-the-hysteresis-effect-in-a-control-flow/60466)._
