The Pirani gauge consists of a thin metal wire (usually tungsten or platinum) that is heated electrically. When a gas surrounds the wire, it cools the wire by conducting heat away from it. As the pressure of the gas decreases, its ability to conduct heat also decreases, resulting in a rise in the temperature of the wire and its electrical resistance. This change in resistance is measured and used to infer the pressure of the gas.