Clothes dryer controller