ROCKLIN (CBS13) – A former Whitney High School teacher pleaded guilty to having an inappropriate sexual relationship with a student.

On Wednesday, 33-year-old Matthew Scott Yamamoto pleaded guilty to four felony counts in connection to his arrest last September.

READ MORE: 1 Person Drowns While Rafting On American River Near Folsom Lake

As part of the agreement, Yamamoto pleaded no contest to oral copulation with a minor, attempted sexual intercourse with a minor and sexual penetration on a minor. He also pleaded guilty to one felony count of conspiracy to obstructing justice.

READ MORE: Teen Missing After Truck Found Submerged In Water

Several related misdemeanor counts were also dismissed. However, the facts leading to those charges can be used in consideration of his sentencing.

Yamamoto faces a maximum of five years in state prison, and may be required to register as a sex offender.

MORE NEWS: $300M For Plan To Move Tracks Off Crumbling Del Mar Bluffs

Sentencing is scheduled for November 19 in Placer County Superior Court.