dryer shuts off early

In the automatic mode (using humidity sensor) most of the clothes will be dry, but not all. I remove the driest clothes and restart, but it only runs for 5-10 minutes then shuts off. I switched to timed drying, set for 30 minutes, and the dryer shut down after 5-10 minutes. Any suggestions?