Anana Gas dryer wont shut off

My dryer will not shut off the sensor button keeps turning itself back on no matter what other button I hit tried to unplug and reset but as sonn as I plugged in the sensor button light up again and set it self for max dry time if I try to run dryer in runs for 5 minutes and stops it sounds like the sensor button onoverlay might be bad I can hear it beping like it is being hit multiple time should I try to replace overlay? on is there somthing internal I should look for?