my system creates a call every half a second. that is crucial because the system I use has to stay 65 bar pressure, and the valve always closes or opens frequently . I want to only get a call once a minute or once every 10 minutes. when I tried to change that, what happened was that the pressure valve now also opening /closing really really slow making the pressure go to the maximum. I need to find a way to have slower readings, but keep the pressure repair as fast. I thought that if there is a way to keep the readings the same but only 1 value every minute (like an average value of all 60 ) will appear on the screen. how do I do that?
attached is my code
Valve_Control_030618_calibprog.ino (10.5 KB)