Check the wire harness connections between the main control board and compressor when you unplug the dryer. If the wire harness is damaged, replace it. The main electronic control board will need to be replaced if the wire harness connections are okay.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.