Ok, this may be another one of my silly questions.
I'm setting up my pressure transducers, I am using an ads1115 to convert analog to digital, and then sending to esp8266 with I2C bus.
from there query up the message in my node red flows. after a few tweaks and math formula's I have the desired info to display in my gauges.
However, when I have zero psi, sometime the reading puts out a -0.** number.
How would I convert any number that is below zero to just zero.
here is my flow
[{"id":"a65a0e317556cf0b","type":"mqtt in","z":"a34699b03789f7a6","name":"","topic":"tele/tas04/SENSOR","qos":"2","datatype":"json","broker":"31a99116.50a74e","nl":false,"rap":true,"rh":0,"inputs":0,"x":296.0086669921875,"y":863.1128540039062,"wires":[["c7c9c6991b52b664","721fd39e5da13ce8","ba19b1dcf1360792","0a3c36f88f17d3af","f32120c5495d6518"]]},{"id":"c7c9c6991b52b664","type":"debug","z":"a34699b03789f7a6","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":507.5086669921875,"y":862.1128540039062,"wires":[]},{"id":"191bfe030b8ea338","type":"debug","z":"a34699b03789f7a6","name":"sensor1volts","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":750.0086669921875,"y":870.1128540039062,"wires":[]},{"id":"721fd39e5da13ce8","type":"change","z":"a34699b03789f7a6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.ADS1115.A0","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":560.5086669921875,"y":902.6128540039062,"wires":[["e4dc56aec1a3014a"]]},{"id":"f32120c5495d6518","type":"change","z":"a34699b03789f7a6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.ADS1115.A1","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":570.0086669921875,"y":972.6128540039062,"wires":[["0c29c97451ac86e0"]]},{"id":"0a3c36f88f17d3af","type":"change","z":"a34699b03789f7a6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.ADS1115.A2","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":560.0086669921875,"y":1042.6128540039062,"wires":[["42125c8bfe939e70"]]},{"id":"ba19b1dcf1360792","type":"change","z":"a34699b03789f7a6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.ADS1115.A3","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":562.0086669921875,"y":1110.6128540039062,"wires":[["70746f5b2072f82c"]]},{"id":"e4dc56aec1a3014a","type":"function","z":"a34699b03789f7a6","name":"","func":"msg.payload = msg.payload*0.1875/1000\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":740.0086669921875,"y":904.6128540039062,"wires":[["191bfe030b8ea338","78d49e6a641a38be"]]},{"id":"78d49e6a641a38be","type":"function","z":"a34699b03789f7a6","name":"","func":"msg.payload = (msg.payload - 0.5)*30/4\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":942.0086669921875,"y":901.6128540039062,"wires":[["53858aa9b0046f35","09ed183c2dcaa150"]]},{"id":"53858aa9b0046f35","type":"debug","z":"a34699b03789f7a6","name":"sensor1PSI","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":951.5086669921875,"y":864.6128540039062,"wires":[]},{"id":"ba84117ccf35918b","type":"debug","z":"a34699b03789f7a6","name":"sensor2volts","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":749.0086669921875,"y":937.6128540039062,"wires":[]},{"id":"0c29c97451ac86e0","type":"function","z":"a34699b03789f7a6","name":"","func":"msg.payload = msg.payload*0.1875/1000\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":740.0086669921875,"y":972.1128540039062,"wires":[["ba84117ccf35918b","267e129cf6ec496d"]]},{"id":"267e129cf6ec496d","type":"function","z":"a34699b03789f7a6","name":"","func":"msg.payload = (msg.payload - 0.5)*30/4\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":942.0086669921875,"y":973.1128540039062,"wires":[["fc379723ed78ae32","2a194c18ce08b5ec"]]},{"id":"fc379723ed78ae32","type":"debug","z":"a34699b03789f7a6","name":"sensor2PSI","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":950.5086669921875,"y":936.1128540039062,"wires":[]},{"id":"a3772cf8011c3cab","type":"debug","z":"a34699b03789f7a6","name":"sensor3volts","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":751.0086669921875,"y":1006.6128540039062,"wires":[]},{"id":"42125c8bfe939e70","type":"function","z":"a34699b03789f7a6","name":"","func":"msg.payload = msg.payload*0.1875/1000\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":741.0086669921875,"y":1042.1128540039062,"wires":[["a3772cf8011c3cab","ea694e98a16747d9"]]},{"id":"ea694e98a16747d9","type":"function","z":"a34699b03789f7a6","name":"","func":"msg.payload = (msg.payload - 0.5)*30/4\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":941.0086669921875,"y":1043.1128540039062,"wires":[["60d0eb8750c23106","ebdb39734f10d8f9"]]},{"id":"60d0eb8750c23106","type":"debug","z":"a34699b03789f7a6","name":"sensor3PSI","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":952.5086669921875,"y":1007.1128540039062,"wires":[]},{"id":"473e0514a656e60e","type":"debug","z":"a34699b03789f7a6","name":"sensor4volts","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":754.0086669921875,"y":1073.6128540039062,"wires":[]},{"id":"70746f5b2072f82c","type":"function","z":"a34699b03789f7a6","name":"","func":"msg.payload = msg.payload*0.1875/1000\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":742.0086669921875,"y":1110.1128540039062,"wires":[["473e0514a656e60e","de37daa06e0e8d5e"]]},{"id":"de37daa06e0e8d5e","type":"function","z":"a34699b03789f7a6","name":"","func":"msg.payload = (msg.payload - 0.5)*30/4\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":941.0086669921875,"y":1110.1128540039062,"wires":[["dd7525ae30bd2aff","92473a7d3edcc293"]]},{"id":"dd7525ae30bd2aff","type":"debug","z":"a34699b03789f7a6","name":"sensor4PSI","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":953.5086669921875,"y":1074.1128540039062,"wires":[]},{"id":"09ed183c2dcaa150","type":"smooth","z":"a34699b03789f7a6","name":"","property":"payload","action":"mean","count":"10","round":"2","mult":"single","reduce":false,"x":1161.0105285644531,"y":899.9783449172974,"wires":[["1867e0f0a8419c07","08e7b453237355a0"]]},{"id":"1867e0f0a8419c07","type":"debug","z":"a34699b03789f7a6","name":"WestFermenter","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1179.559097290039,"y":860.3672313690186,"wires":[]},{"id":"2a194c18ce08b5ec","type":"smooth","z":"a34699b03789f7a6","name":"","property":"payload","action":"mean","count":"10","round":"2","mult":"single","reduce":false,"x":1164.0086555480957,"y":972.4461622238159,"wires":[["f765f4acb6d54d5d"]]},{"id":"ebdb39734f10d8f9","type":"smooth","z":"a34699b03789f7a6","name":"","property":"payload","action":"mean","count":"10","round":"2","mult":"single","reduce":false,"x":1162.0086975097656,"y":1043.446138381958,"wires":[["6a076f9335fa070d"]]},{"id":"92473a7d3edcc293","type":"smooth","z":"a34699b03789f7a6","name":"","property":"payload","action":"mean","count":"10","round":"2","mult":"single","reduce":false,"x":1159.0086822509766,"y":1110.4461965560913,"wires":[["252bcc67f4f0c2c9"]]},{"id":"f765f4acb6d54d5d","type":"debug","z":"a34699b03789f7a6","name":"CenterFermenter","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1193.0086517333984,"y":934.4461603164673,"wires":[]},{"id":"6a076f9335fa070d","type":"debug","z":"a34699b03789f7a6","name":"EastFermenter","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1182.0086784362793,"y":1004.4461364746094,"wires":[]},{"id":"252bcc67f4f0c2c9","type":"debug","z":"a34699b03789f7a6","name":"Extrainput","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1160.0087356567383,"y":1075.4461936950684,"wires":[]},{"id":"08e7b453237355a0","type":"link out","z":"a34699b03789f7a6","name":"pressuresensor1","mode":"link","links":["9ef4a9cf492199bf"],"x":1356.5643310546875,"y":899.2075058959961,"wires":[]},{"id":"31a99116.50a74e","type":"mqtt-broker","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","willTopic":"","willQos":"0","willPayload":""}]