South Dakota is ranked No. 1 in the nation for the percentage of its energy that is produced by renewable sources.