If you have a build up of moisture the humdity sensor may keep the dryer running for long periods.
Disconnect it from the wwall , put a nylon over the exhaust and run it for two loads , one timed, one auto. If it works well and shuts off the issue is likely in your venting. Also inspect the lower exhaust duct inisde the dryer for blockage ,... this is sock heaven. If the duct is blocked humidty may build up in the dryer and the duct as well due to lack of sufficent air flow. I had this happen when my infant son threw bounce sheets in below the lint screen on the dryer door.... a half box of bounce sheets.