BANGOR, Maine — A Bradford man pleaded guilty to conspiring to distribute and possess with the intent to distribute bath salts and being a felon in possession of firearms during a hearing Thursday in U.S. District Court.

Harold Peters III, 37, was one of three people indicted by a federal grand jury in December 2014 for allegedly obtaining Alpha-PVP, a type of bath salts, from China and selling it in Penobscot County between January 2012 and March 2014, according to court documents.

Peters admitted to helping to acquire bath salts from China, getting distribution size quantities of the product from other conspirators and selling it to dealers and users in the Bangor area. He collected drug proceeds from customers and delivered the money to his suppliers and used cellphones to coordinate the criminal activity.

In March 2014, Peters also was illegally in possession of two Winchester rifles that he bought from another conspirator in exchange for bath salts, according to court records. He was prohibited from possessing firearms because he had previously been convicted of felony offenses of unlawful sexual contact, trafficking in prison contraband and failure to comply with the sex offender registry act.

The firearms were recovered from a family member’s residence, where Peters stored them.

Peters faces up to 20 years in prison and fine of up to $1 million, to be followed by at least three years of supervised release, on the drug charge. He also faces up to 10 years in prison, a $250,000 fine and three years of supervised release on the gun charge.

He will be sentenced after the completion of a presentence investigation report by the U.S. Probation Office.

The case that led to Thursday’s plea was investigated by the Maine Drug Enforcement Agency, the U.S. Postal Inspection Service, the Bureau of Alcohol, Tobacco, Firearms and Explosives and New Haven, Connecticut, police.