Gas dryer heats then stops heating

my gas dryer will start with heat then about 2-5 minutes continue to tumble but stop heating- possible coil or “flame sensor”? or…
thanks

flame sensors dont usually work sometimes. bimetals are pretty exact. they either work or they dont. solenoids on the other hand when cold can make contact at the pin that is at the plug on but as it warms up expand and break connection. the issue, if you explained it correct, would lead me more towards the solenoid kit.
ps ive been doing this for 35 years. good luck:cool:

I will try the solenoid kit. Thank you so much.