Arduino Nano V3 only runs sketch correctly after hitting reset or starting serial monitor

According to the equations it gives a zero, when dynamic pressure increases it give an output