Turn off all the range controls and wait for the appliance to cool. Close the gas valve in the pipe connected to the back of the range. The knob on the pipe valve turns clockwise to close.
Pull the range forward from the wall to access the back panel.
Remove the screws in the cover panel on the back of the range using a screwdriver. Take off the panel to expose the ignition assembly. The pilot light is at the top and the gas valve is near the bottom, with the thermocouple wired between them. The oval range burner is below the gas valve.
Loosen the two screws that connect the thermocouple. Pull out the connector on the wire at each end of the thermocouple and remove the part.
Hook the connector on each end of the new thermocouple under the screw head at the pilot and the gas valve. Tighten the two screws.
Replace the cover panel with the screws.
Slide the range back into position and open the external gas valve in the pipe connected to the appliance.