A St. Paul man authorities described as a serial peeper was sentenced to four years in prison Wednesday.

A Ramsey County District judge handed down the sentence to Gentry Jamez Johnson about two months after the 39-year-old pleaded guilty to one count of first-degree burglary in his case, court records say.

He was charged last August after he broke into the front porch of a home on the 800 block of Carroll Avenue and masturbated while peering into the resident’s windows.

His behavior was captured on the 69-year-old homeowner’s surveillance system, and police circulated his image to other local law enforcement agencies asking for help identifying the suspect.

A detective from Brooklyn Center recognized Gentry from similar crimes he committed in his jurisdiction and called St. Paul police, authorities say.

Police suspect Gentry is the same man other residents were sounding alarms about last summer.

In addition to the 69-year-old’s home, other residents on Blair Avenue reported seeing a man in people’s yards who was looking through windows.

Similar reports were made in the Frogtown neighborhood, and two other women who also lived on the 800 block of Carroll Avenue reported seeing a man masturbating on their front porches, authorities say.

Gentry was convicted of interference of privacy for similar conduct in Brooklyn Park back in 2015.