Connections between thermocouple and magnetic valves