Isn't is wise to keep all you questions for this vacuum project in the same thread.
Now you have to tell us again that you started with an MPXV6115V sensor,
for which you haven't shown us any of your code yet.
Spreading all your questions over several treads (cross-posting) gets problematic quickly,
and then you will get more questions than answers.
Don't expect us to write code for you.
We are just here to help you on your way, and give hints or code-snippets when you get stuck.
Leo..
4 Likes