maytag dryer tub spin heat intermitent

gas dryer will turn on first use okay but on the cycle run the ignitor comes on but the gas wont ignite.unplug dryer for nore than 10 minutes sometimes dryer will finish cycles but on next load dryer will be erratic?tumble on, ignitor on, but flame off.

— Begin quote from magician59;119512

Check the flame sensor. You can do this by temporarily bypassing it. Pull the wires off the sensor and tape them together very securely, making sure they can’t touch any metal. then start the dryer and look for flame. If you get it, replace the sensor. If not, you probably have a weak coil (solenoid to open gas valve). It is customary to replace both coils as a set.

— End quote

first itried testing the flame sensor and realize it’s not the problem, you’re right on the coil being the culprit,i’ve tested the device and after a few cycle when flame wont go on, the three terminal coil was open and i could feel its warm and when you allow it to cool a little the coil has ohms reading and will run until it open again when warm.
thank you for your reply !!!