A pilot light not working might be closely associated with the thermocouple. Most of the time, dust and dirt get accumulated in the thermocouple. That is the time the sensor causes problems, and the pilot light does not work.