Gas water heaters depend on a pilot
A gas water heater won't fire the burner unless the thermocouple senses the pilot flame. That part sits right in the pilot flame and sends a small signal back to the gas valve telling it the flame is real. If the thermocouple wears out or gets coated with soot, the valve reads it as no flame and shuts the gas off, even while the pilot is burning fine in front of you. That's why relighting it sometimes works for a day and then fails again.















