A vacuum gauge is used to monitor the level of vacuum in the brake pipe. It is used to ensure that the vacuum is within the required range for safe braking.