From my limited experience, with a condensing dryer.
Had similar problem and it turned out to be the float switch being gunged up, It was a simple and straightforward process taking off back cover, ungunging and cleaning. Youtube was very helpful, also taking photos prior to disconnecting wires ensured that everything went back as intended.