Lift the top panel of the dryer to get to the door switch. Remove any wires that are loose. If the door switch wire harness is damaged, you should replace it. The door switch should be replaced if the wire harness is ok.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.