Dryer ran 5-10 minute and shut off (help)

the gas dryer ran 5-10 minute then shut off, I pushed start again and it ran for 2-3 minutes and then it shut off, i kept doing that until the clothes dried would it be that the heat sensor shut the dryer off? Can someone please give me an idea. Thank you.

check your venting at back of dryer to outside to see if it is clear or kinked . should blow strong air flow

thank you Misterfixall.
yes i did clean and check venting in and out, and i let the dryer run to check out side blow air shutter,
but the dryer still shut off, before clothes dry, and the flashing signal say E1.
E1 in trouble shooting need reset or call in for service. help help help,

i didnt know about e-i code. problem may lie with thermistor or main control board, change thermistor first ,cheaper

yes i just order thermistor for the dryer, and i will fix it when ever parts com in thank so much i will Misterfixall