Dryer stops cycle before clothes are dry

After selecting my chosen cycle, it starts and heats but will turn off within 20-30 minutes and clothes are still wet and sometimes damp.