Many gas-fed heating appliances such as ovens and water heaters make use of a pilot light to ignite the main gas burner as required. If the pilot light becomes extinguished for any reason, there is the potential for un-combusted gas to be released into the surrounding area, thereby creating both risk of fire and a health hazard.
To prevent such a danger, some appliances use a thermocouple as a fail-safe control to sense when the pilot light is burning. The tip of the thermocouple is placed in the pilot flame. The resultant voltage, typically around 20 mV, operates the gas supply valve responsible for feeding the pilot.
So long as the pilot flame remains lit, the thermocouple remains hot and holds the pilot gas valve open. If the pilot light goes out, the temperature will fall along with a corresponding drop in voltage across the thermocouple leads, removing power from the valve. The valve closes, shutting off the gas and halting this unsafe condition.
to add to that, your LG heater has a "flame splitter" made of sheet metal, it puts a portion of the pilot light towards teh burner ring, and a portion towards the thermocouple, thorughly warming the bulb of the TC, make sure the flame is split and clean looking.
It's my guess, "rebuilding" LG heaters is the reason for most Thermal Incidents...lol