A San Antonio man accused of exposing himself to a student at University of the Incarnate Word campus and peering into apartments in Olmos Park has been sentenced to 18 years in prison.

Judge Benjamin Robertson, who presides in the 226th State District Court, sentenced Jose Roberto Medina, 30, on Tuesday as part of a plea agreement.

An online tip led police to arrest Medina, 30, on May 4. 

Medina was charged with voyeurism, indecent exposure and other offenses, including burglary of a habitation with intent to commit another felony, which itself is a first-degree felony. As part of the plea bargain, Medina pleaded guilty to the felony burglary charge and one misdemeanor count each of voyeurism and indecent exposure, court records show.

An affidavit supporting his arrest said Olmos Park police went to the Olmos Park Gardens apartment complex in the 1000 block of Shook Avenue after a woman said she saw a man outside her window. 

The woman told police she was in her living room when she caught a glimpse of the man in the mirror and saw him looking inside, according to the affidavit. She told police she later confronted the man from her back porch and saw him perform a lewd act before he ran away. 

Another woman at the same complex told authorities that a man followed her after she returned home from a jog. She said she hid and then ran into her apartment when the man became distracted. 

Security footage captured the man looking into the window of the first woman’s apartment, then moving to a back porch area and hiding in the parking lot, authorities said. The footage also showed him riding around the complex on a bicycle.

The investigation expanded to include the University of the Incarnate Word, where police said a man was seen entering rooms at Avoca Residence Hall on April 20. The suspect allegedly stood behind a female student, exposed himself and performed a lewd act.

The student told police she feared the man would sexually assault her, and she ran screaming from the room. The man left the area on a bicycle.

Authorities received several tips, including screenshots of a man that matched Medina’s driver’s license photo, the affidavit states.

Investigators said they learned from Texas Rangers that Medina is a convicted felon who had recently been released from prison and was known to use a bicycle for transportation. 

Medina will have to serve at least nine years in prison before becoming eligible for parole.