Thermocouples are made to recognize the loss of heat from a pilot light and close the gas valve to stop a gas leak.