# Script to output a signal starting at a certain value

**URL:** <https://discourse.nodered.org/t/script-to-output-a-signal-starting-at-a-certain-value/18516>\
**Category:** General\
**Created:** [27 November 2019 15:11 UTC](https://discourse.nodered.org/t/script-to-output-a-signal-starting-at-a-certain-value/18516 "2019-11-27T15:11:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarkMission](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@DarkMission](https://discourse.nodered.org/u/DarkMission)\
**Post date:** [27 November 2019 15:11 UTC](https://discourse.nodered.org/t/script-to-output-a-signal-starting-at-a-certain-value/18516/1 "2019-11-27T15:11:56Z")

</div>

Hello,

First of all, my english isn't the best. If you have any questions, please feel free to ask.

I've connected a DHT22 to a Raspberry. This passes the humidity and temperature on to Apple Home. Now I would like to use this data to send a signal when the temperature or humidity is exceeded, which then deactivates my Alexa socket or reactivates it when the temperature falls below it. Unfortunately I am still a beginner and don't know much about it.

 ![node-red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/a175187b8c9f24273413e1c2f1ee6ffdad325458.png)
