ST. CLOUD --  A Stearns County judge has sentenced a St. Cloud man caught peering inside the windows of unsuspecting women inside their south St. Cloud home.

Thirty-four-year-old Kevin Petroske was sentenced to just under six years in prison but had that sentence stayed if he complies with several conditions set forth by the judge.

Petroske will also be on probation for 20 years.

According to the criminal complaint, police confiscated Petroske's phone and found 39 different recordings of young women between the ages of 19-21. Records also show many of the recordings showed the victims naked or partially clothed.

Officers were able to identify six different victims in 25 of the recordings. All of the identified victims were recorded at their home in the 700 block of Seventh Avenue South in St. Cloud. Most of the recordings took place between April and June of 2014.

Assistant Stearns County Attorney Kevin Voss says Petroske pleaded guilty to five felony counts of committing a pattern of stalking conduct. He also pleaded guilty to one count of gross misdemeanor interfering with privacy. The remaining counts against Petroske were dropped as part of the plea agreement.

Conditions of Petroske's probation are that he must successfully complete sex offender treatment, have no contact with the victims, have no internet access, do not use or possess any pornography, abstain from all mood altering chemicals including alcohol, must not live on a college campus or in housing associated with any college, and must submit to polygraph tests for case management purposes.

As part of his sentence, Petroske was also given credit for 254 days he served in jail.