Timothy Merwarth of North Whitehall Township pleaded guilty in Lehigh County Court Tuesday to two counts of sexual abuse of children.
One count was for possession of child porn, the other for creating child porn, reported Assistant District Attorney Matthew Falk.
Merwarth also pleaded guilty to one count of corruption of minors and one count of endangering the welfare of a child.
Merwarth also pleaded no contest to one count of involuntary deviate sexual intercourse.
In return for the plea, prosecutors agreed to cap sentencing at 15 years, meaning Merwarth could spend up to 15 years in prison, explained Falk.
Sentencing is scheduled for Oct. 7.
Merwarth initially was charged with rape when arrested in November. Police reported he repeatedly abused a teen girl and filmed some of the attacks.
Police said he abused the girl for a year and a half, starting around her 16th birthday.