Dryers normally have 2 computers, the control panel, and the main computer.
The dryer uses sensors, called thermistors, to tell the main computer the temperature inside the dryer. Thermistors are resistors that change resistance with temperature. So as the dryer heats up, the thermistor tells the main computer what the temperature is. Thermistors can fall out of cailbration, and report the wrong info to the computer, this can result in the clothes not drying properly, or even the dryer prematurely shutting itself off.
There is also a moisture sensor in the drum of the dryer and as wet clothes rub on it, it sends a signal to the computer that they are still wet, and will automatically adjust the length of time the dryer runs.
Between all the sensors and computers, there are bound to be some type of communication errors, a lot of the times these errors are due to the dryer being misused. It is imperative to keep the lint filter clean, and vacuum out the lint filter housing frequently. If the sensors get too dirty, they can give misreadings to the main computer.
Another overlooked, but major issue with dryers, is the venting of the home.
If the vent is over 8ft long, with 90 degree elbows, this will restrict the air pressure that comes out of the dryer, this will reult in poor drying times, but add strain to the dryer. If your clothes are taking a long time to dry, or not at all, check the vent hose of the dryer, but also of your home. If the vent has not been cleaned in years, you will need to get a vent cleaning company to clean it out.