Step1: Turn off the gas supply to the appliance and disconnect power.
Step2: Remove the old solenoid valve from the line.
Step3: Check gas pipe threads and connections for damage.
Step4: Install the new valve in the same orientation as the old one.
Step5: Tighten fittings securely and check for leaks with soapy water.
Step6: Reconnect the electrical wires to the solenoid coil.
Step7: Restore power and slowly turn on the gas supply.
Step8: Test valve operation by cycling the appliance and observing proper gas flow.