An Anderson man who pledged allegiance to the Islamic State has been sentenced for using weapons of mass destruction after authorities found several homemade explosive devices around Anderson County.

Wesley Dallas Ayers, 27, was sentenced to more than 30 years in federal prison and five years of supervised release after previously pleading guilty, the U.S. Attorney's Office announced Friday.

Ayers admitted that he constructed and placed three explosive devices in various parts of Anderson County between Jan. 24, 2018 and Feb. 24, 2018, according to a statement from the U.S. Attorney's Office.

More:Anderson man who warned of jihad pleads guilty to building homemade explosives

Ayers pledged allegiance to the Islamic State in letters and warned of a jihad, according to investigators' testimony in a federal court hearing before he pleaded guilty.

One of the devices, placed at the intersection of Travis and Martin roads in Anderson County, detonated and injured one person, according to the U.S. Attorney's Office.

The other two devices were located and intercepted by law enforcement before they caused any harm.

Three hoax devices were also placed around Anderson County that resembled explosives but were not. In some devices, Ayers left notes indicating that more powerful devices were to come, according to the statement.

His arrest came after a month-long investigation with the Federal Bureau of Investigation; the Bureau of Alcohol, Tobacco, Firearms and Explosives; the Anderson County Sheriff's Office and various other law enforcement agencies.

Authorities searched Ayers' property that showed items consistent with the manufacturing of explosive devices.

More:Man arrested during probe of suspicious packages in Anderson linked to letters of 'jihad'