Thermocouples for central heating boilers. A thermocouple is used to detect the presence of a flame by using the heat of the flame to produce a small current that is used to keep a solenoid valve open. When no flame is detected then the solenoid valve is de-energised and the gas supply is cut off.