How to track temperature trend

perhaps like this? But be aware this is only a first layout to give you a little kickstart.

[{"id":"caf032d7.6095a","type":"function","z":"9684985b.d608d8","name":"30-50°","func":"msg.topic=msg.payload;  \nmsg.label=msg.payload;\nmsg.payload=40+(20*Math.random()-10);\nreturn msg;","outputs":1,"noerr":0,"x":271,"y":102,"wires":[["52e5a428.3e305c"]]},{"id":"d2da1ba2.346478","type":"inject","z":"9684985b.d608d8","name":"","topic":"","payload":"inside","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":118,"y":102,"wires":[["caf032d7.6095a"]]},{"id":"5e871ac3.39f914","type":"switch","z":"9684985b.d608d8","name":"Less then 40?","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"40","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":624,"y":102,"wires":[["fa00994.be95b68"],["223c3640.aaca4a"]]},{"id":"fa00994.be95b68","type":"change","z":"9684985b.d608d8","name":"below 40°","rules":[{"t":"set","p":"FridgeStatus","pt":"flow","to":"all fine (<40)","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"below 40°","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":978,"y":68,"wires":[["6981ae15.47cb8","2bf4750a.98e8ea"]]},{"id":"223c3640.aaca4a","type":"delay","z":"9684985b.d608d8","name":"Delay 2 minutes","pauseType":"delay","timeout":"2","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":845,"y":170,"wires":[["38b05bc3.587cd4"]]},{"id":"52e5a428.3e305c","type":"change","z":"9684985b.d608d8","name":"save","rules":[{"t":"set","p":"recent","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":441,"y":102,"wires":[["5e871ac3.39f914"]]},{"id":"38b05bc3.587cd4","type":"switch","z":"9684985b.d608d8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"recent","vt":"flow"},{"t":"gte","v":"recent","vt":"flow"}],"checkall":"true","repair":false,"outputs":2,"x":1019,"y":170,"wires":[["90758b69.0e0678"],["175cc3f6.0e514c"]]},{"id":"90758b69.0e0678","type":"change","z":"9684985b.d608d8","name":"falling","rules":[{"t":"set","p":"FridgeStatus","pt":"flow","to":"temp falling","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"falling","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1155,"y":136,"wires":[["6981ae15.47cb8","2bf4750a.98e8ea"]]},{"id":"175cc3f6.0e514c","type":"change","z":"9684985b.d608d8","name":"rising","rules":[{"t":"set","p":"FridgeStatus","pt":"flow","to":"temp rising","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"rising","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1155,"y":204,"wires":[["6981ae15.47cb8","2bf4750a.98e8ea"]]},{"id":"6981ae15.47cb8","type":"ui_text","z":"9684985b.d608d8","group":"203494fb.e2be2c","order":8,"width":0,"height":0,"name":"Fridge OK?","label":"Fridge Ok?","format":"{{msg.payload}}","layout":"row-spread","x":1362,"y":68,"wires":[]},{"id":"2bf4750a.98e8ea","type":"debug","z":"9684985b.d608d8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1362,"y":119,"wires":[]},{"id":"203494fb.e2be2c","type":"ui_group","z":"","name":"Lights","tab":"612f702e.cc40e","disp":true,"width":"6","collapse":false},{"id":"612f702e.cc40e","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]