Baseboard water Heater
Thermocouples produce a minute amount of current with a minuscule voltage.  The connection to the gas valve where the new thermocouple is installed needs to be clean and free of debris or it will not be reliable.  Take the connection apart, carefully clean the contacts, and put it back together.  That may solve the problem.