Thermocouple, magnetic end fitting and pilot burner