Maytag Dryer

Our Maytag dryer has stopped heating on the moisture sensor cycle. We have replaced the moisture sensor and it still doesn’t work. It heats fine on the timed drying cycles. Any ideas?