# Send Limit Alerts while humidity\<30%

**URL:** <https://discourse.nodered.org/t/send-limit-alerts-while-humidity-30/14160>\
**Category:** Dashboard\
**Created:** [9 August 2019 01:51 UTC](https://discourse.nodered.org/t/send-limit-alerts-while-humidity-30/14160 "2019-08-09T01:51:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![reginasamosir](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@reginasamosir](https://discourse.nodered.org/u/reginasamosir)\
**Post date:** [9 August 2019 01:51 UTC](https://discourse.nodered.org/t/send-limit-alerts-while-humidity-30/14160/1 "2019-08-09T01:51:40Z")

</div>

Hey! It's been about 2 months i'm using NodeRED  
i'm about to use FRED for my small project  
The project is to monitor soil humidity.  
I didn't know how to sends alerts in notification dashboard when the humidity \<30%

Does anyone know how to create the flow?  
I'm using mqtt protocol with NodeMCU V3 and YL-69 moisture sensor

Thank you!!

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [9 August 2019 06:08 UTC](https://discourse.nodered.org/t/send-limit-alerts-while-humidity-30/14160/2 "2019-08-09T06:08:51Z")

</div>

You want to send alerts to ?  
The dashboard won't send alerts (although you could somehow create it) unless you mean the notification in the dashboard itself.

You already have mqtt, so create the alert in the node-red editor with a flow.

---

<div class="post-metadata">

**Author:** ![reginasamosir](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@reginasamosir](https://discourse.nodered.org/u/reginasamosir)\
**Post date:** [9 August 2019 08:19 UTC](https://discourse.nodered.org/t/send-limit-alerts-while-humidity-30/14160/3 "2019-08-09T08:19:39Z")

</div>

do you know the flow configuration for creating an alert in the editor?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [9 August 2019 08:23 UTC](https://discourse.nodered.org/t/send-limit-alerts-while-humidity-30/14160/4 "2019-08-09T08:23:22Z")

</div>

How do you want to receive the alert? email ? Telegram ? In the dashboard ?  
It would be nice if you could explain what you want to achieve and what your flow looks like.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [9 August 2019 08:24 UTC](https://discourse.nodered.org/t/send-limit-alerts-while-humidity-30/14160/5 "2019-08-09T08:24:58Z")

</div>

Take a look at the cookbook, examples in there such as this should get you started

[https://cookbook.nodered.org/basic/route-on-property](https://cookbook.nodered.org/basic/route-on-property)

---

<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:** [9 August 2019 08:39 UTC](https://discourse.nodered.org/t/send-limit-alerts-while-humidity-30/14160/6 "2019-08-09T08:39:05Z")

</div>

Here's a link to a soil moisture project that some of my IoT students tackled last September.  
It might give you some ideas to get you started.

> [@Soil Moisture Sensor/Monitor](https://discourse.nodered.org/t/soil-moisture-sensor-monitor/2745):
>
> [Soil Moisture Sensor/Monitor instruction sheet](http://resources-area.co.uk/node-red-flows/moisture_sensor.pdf)[Node-RED flow](http://resources-area.co.uk/node-red-flows/soil_moisture_monitor.txt)[Node-RED flow version 2](http://resources-area.co.uk/node-red-flows/soil_moisture_monitor_v2.txt) I've just finished writing-up an instruction sheet for my IoT students on sensing soil moisture in a plant pot. I've purchased 6-off of the inexpensive resistive moisture sensors. I've been told they are liable to corrosion so the program I have running in the Wemos D1 Mini uses "rules" and an NPN transistor to switch the 3V3 supply to the sensor on for 8 seconds every 15 minutes (which will hopefully reduce…

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 August 2019 00:18 UTC](https://discourse.nodered.org/t/send-limit-alerts-while-humidity-30/14160/7 "2019-08-10T00:18:20Z")

</div>

In its simplest form, you want to create and "alert" when a value is \> a "limit" right?

So add a switch node and set the comparison type to `>` and the value to 30 (or whatever equates to 30%) then feed that to a switch node that sets payload to a suitable string e.g. "humidity is greater than 30%" and feed that to a notification node.

In basic terms...  
Sensor (MQTT input) ▶ switch node (test the value) ▶ change node (set payload to your notification message) ▶ notification node (so that you get an alert)

Notes: this is pretty useless to be fair. You'd be better off sending an email or telegram so you don't have to sit with your eyes pinned to a dashboard.

Better still, you would feed this "alarm" to a system that controlls the humidity (perhaps stop water flow or an air conditioner to reduce humidity) and have the system look after itself 🕶
