# Sensor Data much to high

**URL:** <https://discourse.nodered.org/t/sensor-data-much-to-high/39984>\
**Category:** General\
**Created:** [29 January 2021 06:32 UTC](https://discourse.nodered.org/t/sensor-data-much-to-high/39984 "2021-01-29T06:32:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Post date:** [29 January 2021 06:32 UTC](https://discourse.nodered.org/t/sensor-data-much-to-high/39984/1 "2021-01-29T06:32:41Z")

</div>

Hello  
i grab some temperature sensor from a weather station.  
Now something is wrong there and i got temperature over 8000C it musst be like a sun this Station.  
Is there a way to ignore this wrong Data befor added to the influxDB or doing some further trigger?

have a nice day  
vinc

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 January 2021 07:11 UTC](https://discourse.nodered.org/t/sensor-data-much-to-high/39984/2 "2021-01-29T07:11:00Z")

</div>

Put a switch node between the input and influx nodes configured to pass only messages containing valid data.

---

<div class="post-metadata">

**Author:** ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Post date:** [29 January 2021 18:32 UTC](https://discourse.nodered.org/t/sensor-data-much-to-high/39984/3 "2021-01-29T18:32:35Z")

</div>

@Colin  
thanks for your feedback, the input is valid but quit hot - like you put a sensor on the Sun! 😉

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 January 2021 19:40 UTC](https://discourse.nodered.org/t/sensor-data-much-to-high/39984/4 "2021-01-29T19:40:39Z")

</div>

> [@vikozo](#):
>
> the input is valid

No it isn't, it is much to high.

---

<div class="post-metadata">

**Author:** ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Post date:** [29 January 2021 20:10 UTC](https://discourse.nodered.org/t/sensor-data-much-to-high/39984/5 "2021-01-29T20:10:38Z")

</div>

you mean to add a switch Node to splitt if it is higher then 50C it dropts and nothing happen and below it would be OK and added to the Database?  
But this would have to be done for all Sensors, too!  
as i wrote it is valid it was a correct number

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 January 2021 20:44 UTC](https://discourse.nodered.org/t/sensor-data-much-to-high/39984/6 "2021-01-29T20:44:37Z")

</div>

> [@vikozo](#):
>
> as i wrote it is valid it was a correct number

You can define invalid however you like. If you consider that anything above 50 is invalid then you can say that.  
So yes, my suggestion was to use a Switch node configured something like this

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

Then anything above 50 will be dropped.

> [@vikozo](#):
>
> But this would have to be done for all Sensors, too!

You didn't say you had lots of sensors. Do you have lots of different paths that the data goes down? I would have expected data from all stations to go down same wire, one at a time so that one Switch node would do it. If that isn't correct then tell us a bit more about how your system is organised.

---

<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:** [30 March 2021 20:44 UTC](https://discourse.nodered.org/t/sensor-data-much-to-high/39984/7 "2021-03-30T20:44:43Z")

</div>

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