Dryer wont heat

Can’t figure out why gas dryer will not get hot. Checked igniter and it was about 68 ohms. Checked flame sensor and it had continuity. Not sure what to check next. Before it completly went out, it would take forever for clothes to dry. The dryer will never cut off, even when I open the door. I have to turn the knob to off.