A pilot is a small flame holding a valve open with a small current. Cold, air movement and a dirty flue all interfere with that arrangement.
The order that finds it
Watch the flame. Lifting, wandering, or changing when a door moves means air, not a part.
Measure the proving signal. A thermocouple reading tells you whether the valve is being held open or merely happens to be open.
Confirm the fuel. Steady supply, correct fuel, correct rating.
Inspect the flue and termination. Clearance, cap, screen, draft.
Then the control. Last, as ever.
Why overnight
The coldest hours are the test. At about 5,880 feet on shaded lots, the space around a heater loses heat quickly after dark, and a sensor that works in the afternoon can fail to hold by two in the morning.
The timber issue
Caps and screens collect needles. A flue that was clear in spring may restrict by autumn, which affects reliability and safety at once.
Safety
A gas smell is a leave-the-building situation: call the supplier or emergency services once you are outside. Soot, scorching or spillage also mean the unit should not be used.
Repair or replace
A thermocouple on a sound tank is a modest fix. On an older unit, replacement also gets the venting right.
What to have ready
Fuel, failure timing, vent condition.