I am building an automatic control system for an compressor that stops at a designated pressure. Here's a rough sketch of the system: The compressor should receive the on signal from the microcontroller until the pressure sensor senses pressure exceeding the set threshold.
However, I have observed that while air is flowing from the compressor to the tire, the pressure sensor reads substantially higher than the actual pressure in the tire. If I turn off the shutoff valve manually, the pressure reads the actual tire pressure.
Is there a way to get the true tire pressure from the pressure sensor while the compressor is on and air is flowing?