A state of emergency has been declared for 24 counties in Florida to prepare for impacts from Tropical Depression Nine.