I have a circuit that I am reading pressure through a small orifice. I use a small air pump for generating air through the orifice. Typical readings I get is 120mmhg. What I want to know is if it is possible and how to program a last reading of 120mmhg etc before popoff of pressure from a diaphragm and it goes back to zero?
Depending on how frequently you take the readings and how fast they drop to zero it may be better to save the last few readings so that you can account for the fact that the reading previous to zero was not, in fact, the highest recorded value, if that is what you want to do
Even easier, each time you take a reading save it if it is the highest value since the pressure was last zero
If you are not trying to record the highest pressure then please expand on what you want to do