# How to check a value remains above threshold for a time?

**URL:** <https://discourse.nodered.org/t/how-to-check-a-value-remains-above-threshold-for-a-time/26429>\
**Category:** General\
**Created:** [10 May 2020 13:29 UTC](https://discourse.nodered.org/t/how-to-check-a-value-remains-above-threshold-for-a-time/26429 "2020-05-10T13:29:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebloemsma](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@ebloemsma](https://discourse.nodered.org/u/ebloemsma)\
**Post date:** [10 May 2020 13:29 UTC](https://discourse.nodered.org/t/how-to-check-a-value-remains-above-threshold-for-a-time/26429/1 "2020-05-10T13:29:23Z")

</div>

I have a input value of sun radiation and want to control blinds with it. But the value is very unstable, so I want to react (shades down/up) only if the value remains above or below a threshold for a given time (e.g. 10minutes). Since I want to react faster if radiation increases then if it decreases the mean value is not optimal.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/0/e018f4cc1cec4f725e29adf615f744af1f06361f.png)

I was fiddling around with traffic and delay but come to good solution. any ideas where to look further?

Thanks

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 May 2020 13:37 UTC](https://discourse.nodered.org/t/how-to-check-a-value-remains-above-threshold-for-a-time/26429/2 "2020-05-10T13:37:17Z")

</div>

look at the trigger node and extend option within it etc

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 July 2020 13:37 UTC](https://discourse.nodered.org/t/how-to-check-a-value-remains-above-threshold-for-a-time/26429/3 "2020-07-09T13:37:22Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
