# How to detect no coming payload?

**URL:** <https://discourse.nodered.org/t/how-to-detect-no-coming-payload/12933>\
**Category:** General\
**Created:** [5 July 2019 02:42 UTC](https://discourse.nodered.org/t/how-to-detect-no-coming-payload/12933 "2019-07-05T02:42:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppungpong](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ppungpong/32/9494_2.png) [@ppungpong](https://discourse.nodered.org/u/ppungpong)\
**Post date:** [5 July 2019 02:42 UTC](https://discourse.nodered.org/t/how-to-detect-no-coming-payload/12933/1 "2019-07-05T02:42:23Z")

</div>

I want to check or detect on node-red when no payload is sent because I am connected to the sensor and accept the value I want to know when there is no information sent from the sensor as a warning or anything. How should I write the function when I try to do it myself? It didn't work as expected.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [5 July 2019 06:07 UTC](https://discourse.nodered.org/t/how-to-detect-no-coming-payload/12933/2 "2019-07-05T06:07:34Z")

</div>

You can use the Trigger node for this. There is an example in the cookbook: [https://cookbook.nodered.org/basic/trigger-timeout](https://cookbook.nodered.org/basic/trigger-timeout)

---

<div class="post-metadata">

**Author:** ![ppungpong](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ppungpong/32/9494_2.png) [@ppungpong](https://discourse.nodered.org/u/ppungpong)\
**Post date:** [8 July 2019 03:08 UTC](https://discourse.nodered.org/t/how-to-detect-no-coming-payload/12933/3 "2019-07-08T03:08:04Z")

</div>

Thx verry much!
