Basic design help Digital pressure regulator

The design is a Uno based digital pressure regulator using a standard type air pressure regulator being adjusted by a servo motor and a sensor with analog out as a feedback.
I do not fully understand your code LOL ! not the best at this

thanks for the reply !