A Pirani gauge is a device used to measure vacuum pressure. It operates based on the thermal conductivity of gases, where the electrical resistance of a heated filament changes with the surrounding gas pressure. This change in resistance is used to determine the vacuum level.