A former Prince George’s County school bus driver was sentenced Wednesday to 55 years in prison, followed by a lifetime of supervised release, for producing child pornography.

Scott Smallwood, 29, of Upper Marlboro was arrested in 2010 after he left a memory card containing sexually explicit videos of a 7-year-old boy on the counter of a convenience store.

Smallwood pleaded guilty in February to two counts of producing child pornography.

“Child predators targeting our most vulnerable members of society is a serious matter and even more disturbing when it involves a school bus driver,” William Winter, special agent in charge of ICE Homeland Security Investigations in Baltimore, said in a statement after the sentencing by U.S. District Judge Roger W. Titus at the federal courthouse in Greenbelt.

According to the plea agreement, Smallwood was a night bus driver and also drove the boy to church. He had “sleepovers” with the boy, according to the agreement, and gave him “candy in exchange for inappropriate sexual contact.”

Smallwood had been employed since 2005 as a school system bus driver. He also drove buses for Montgomery County summer camps, according to federal prosecutors.

Defense attorney Timothy J. Sullivan declined to comment.