Smart cloth dryer