Leavenworth Former Basehor Mayor John Pfannenstiel was sentenced to a year of probation for having sex with three inmates at the prison where he was a guard.
Pfannenstiel, who has denied any wrongdoing, remained optimistic about an appeal after his sentencing Friday.
"We plan to appeal, and essentially we'll be right back where we started with another trial," he said. "In my view, the prison investigators and the prosecutors have taken their best shot at me.
"While I'm a little bit bruised," he said, "I'm still standing."
Pfannenstiel, who was fired in September as a guard at the Lansing Correctional Facility, was convicted in March 23 of three counts of sexual misconduct.
Under the sentence Leavenworth County District Judge Frederick Stewart imposed Saturday, Pfannenstiel could serve up to six months in prison if he were to violate the terms of his probation.
Pfannenstiel, who began working at the prison in 1986, was a sergeant and work crew supervisor.
After his conviction, Pfannenstiel announced he was dropping out of the race for re-election as mayor of Basehor, but his name remained on the April 3 ballot.
Kansas law generally prohibits those convicted of a felony from holding public office.
Since the conviction, Pfannenstiel said, he and his wife have received emotional and financial support from several community members who believe in his innocence.