RAPID CITY, S.D. (KELO) — A Rapid City man – arrested during an online sex sting at last year’s Sturgis Motorcycle Rally – is headed to federal prison.

Court papers say Joshua Lehman tried to set up a sexual encounter with an undercover officer posing as a child.

He reached a plea deal with prosecutors, and a judge sentenced him to five years in prison and five years of supervision.