# Want to make a min/max text box on the dashboard for temp sensor output

**URL:** <https://discourse.nodered.org/t/want-to-make-a-min-max-text-box-on-the-dashboard-for-temp-sensor-output/30033>\
**Category:** General\
**Created:** [14 July 2020 05:28 UTC](https://discourse.nodered.org/t/want-to-make-a-min-max-text-box-on-the-dashboard-for-temp-sensor-output/30033 "2020-07-14T05:28:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmystique](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rmystique/32/84365_2.png) [@rmystique](https://discourse.nodered.org/u/rmystique)\
**Post date:** [14 July 2020 05:28 UTC](https://discourse.nodered.org/t/want-to-make-a-min-max-text-box-on-the-dashboard-for-temp-sensor-output/30033/1 "2020-07-14T05:28:15Z")

</div>

I have text box but could have 2 if needed, i have atemp sensor giving me temp readings and i want to use that to check if its above or below the previous min/max and is so update the text box to show the new min or max.

```auto
[{"id":"28cdd8ce.21a0a8","type":"inject","z":"4f2cae6a.c5ec8","name":"","topic":"","payload":"","payloadType":"date","repeat":"5","crontab":"","once":true,"onceDelay":"1","x":110,"y":80,"wires":[["7c5c08b5.cc8018","66a36073.28bb8"]]},{"id":"66a36073.28bb8","type":"rpi-dht22","z":"4f2cae6a.c5ec8","name":"#1 dht11","topic":"rpi-dht22","dht":"11","pintype":"0","pin":"4","x":300,"y":120,"wires":[["12ce82c6.48429d","632e50b7.05488","9af87ac1.504388"]]},{"id":"9af87ac1.504388","type":"function","z":"4f2cae6a.c5ec8","name":"","func":"msg.payload = msg.payload *1.8 +32\nif msg.payload > flow.max1\nthen return msg;","outputs":1,"noerr":11,"x":440,"y":80,"wires":[["8a0046ff.d6e748"]]},{"id":"8a0046ff.d6e748","type":"ui_text","z":"4f2cae6a.c5ec8","group":"4aff2917.bb1b98","order":1,"width":0,"height":0,"name":"","label":"text","format":"{{msg.payload}}","layout":"row-center","x":590,"y":80,"wires":[]},{"id":"4aff2917.bb1b98","type":"ui_group","z":"","name":"Main","tab":"7dd97b74.960734","order":1,"disp":true,"width":"6","collapse":false},{"id":"7dd97b74.960734","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<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:** [14 July 2020 07:29 UTC](https://discourse.nodered.org/t/want-to-make-a-min-max-text-box-on-the-dashboard-for-temp-sensor-output/30033/2 "2020-07-14T07:29:57Z")

</div>

the node-red-node-smooth can show the most recent max or min for you.

---

<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:** [12 September 2020 07:30 UTC](https://discourse.nodered.org/t/want-to-make-a-min-max-text-box-on-the-dashboard-for-temp-sensor-output/30033/3 "2020-09-12T07:30:11Z")

</div>

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