\
In the first place, you want to find out why the pilot light keeps going off. The pilot light usually goes off if there is a problem with gas supply or gas supply regulators. In other words, the thermocouple should be at the center of anything that happens to the pilot light.If dust builds up in the thermocouple blocking the sensors, there will be a problem with the pilot light. The flame sensors should be able to sense the heat from the pilot light. \
If they do not, the thermocouple will block the flow of gas and hence stoping the pilot light. If your light keeps going off even after you have put it on, chances are that our thermocouple has a heat sensor problemTo deal with this problem, start by cleaning your thermocouple and light the pilot light. If the problem persists, chances are that the entire thermocouple may need to be replaced. \