A device for detecting compounds in a gas, particularly hydrocarbons. A sample of a gas is put into a detector and burned in a flame so that it produces ions and electrons. These ions produce a current when a potential difference is applied, with the current being related to the concentration of the hydrocarbon in the gas. The FID has been used extensively since the late 1950s.