A former Melbourne police officer fired for having sex with prostitutes while on the job takes a plea deal.

Jose Otero will now get 6 months probation and treatment for sex addiction.

Otero has paid with his job and his family. He told a judge he's now trying to repair his life.

Otero had no comment after his plea deal hearing Friday. However, he told the judge that he made a mistake.

Part of his sentence will be supervised probation and counseling for sex addiction.

Melbourne police began to track Otero in May 2012, using surveillance and dash board cameras.

Investigators said Otero had sex with at least four prostitutes while on the job as a Melbourne police officer.

Surveillance video claimed to show Otero picking up and dropping off prostitutes.

"I would like to apologize to everyone involved in this case, I never meant for any of this to happen, I never meant to put my wife, my family through any of this. I never been in trouble," Otero said.

"A law enforcement officer is out there, supposed to be enforcing the law, protecting the public, etcetera and whether he has an addiction or not, he's out there taking advantage of some of the most vulnerable that we have out there on the street,” said Assistant State Attorney Wayne Holmes.

As a part of the plea, Otero had to surrender his certification as a police officer, keeping him out of law enforcement.

Otero and his attorney were successful in begged the judge to allow him to keep his driver's license, that's because his attorney said Otero is trying to start a trucking business.