BALTIMORE — A Baltimore man has been sentenced to 30 months in prison for possessing child pornography.

Twenty-nine-year-old Jerry James McGee, who was sentenced Thursday, must register as a sex offender upon release.

According to his plea agreement, McGee communicated online with an undercover Baltimore County police detective posing as a minor girl. McGee agreed to meet the girl and was arrested when he went to the agreed-upon location.

McGee’s home was searched and prosecutors say child pornography was found on his computer.