ATHERTON (CBS SF) – A 36-year-old man who pleaded no contest to a felony for exposing himself at an elementary school in Atherton last month has been sentenced to 16 months in state prison, San Mateo County prosecutors said Tuesday.

Brandon Yamagata, who had seven prior felony convictions including one earlier this year for grabbing a teenage girl at a coffee shop in Redwood City, was arrested on the night of Nov. 1 after a janitor at Encinal School reported that someone was masturbating at the campus, according to the San Mateo County District Attorney’s Office. No students or teachers were at the school at the time.

READ MORE: UPDATE: 4 Minors Arrested In Connection with Shooting in Hillsdale Mall Parking Lot

He had entered a no contest plea last month to felony indecent exposure and was sentenced by Judge Barbara Mallach to the 16-month term with 113 days credit for time served, prosecutors said.

Yamagata in June was arrested for grabbing the teen outside of the Teaspoon coffee, tea and dessert bar on Broadway in Redwood City and pleaded no contest to a misdemeanor child molestation charge. He was on probation for that case at the time of the November arrest, prosecutors said.

READ MORE: UPDATE: Police Shoot, Kill Armed Suspect Outside International Terminal at SFO

Mountain View sex crime suspect Brandon Yamagata (Mountain View Police Department)

In 2017, Yamagata was arrested in Mountain View on multiple charges, including indecent exposure, child molestation and unlawful sex with a minor.

MORE NEWS: Oakland Police Arrest Four in Separate Weapons and Drug Busts

© Copyright 2021 CBS Broadcasting Inc. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. Bay City News Service contributed to this report.