Dryer won’t stop after timer ends

So the dryer spins and dries the clothes just fine. It just won’t stop when the timer ends and I have to open the door to stop it. What needs to be replaced?

check your timer