Doyle signed four other bills, including two to strengthen the registry for released sex offenders and one to make window peeping a crime.
Wisconsin was one of only four states that didn't explicitly prohibit sexual conduct between prison and jail staff members and inmates.
Now, any prison or jail guards, social workers or other criminal justice officials who engage in sexual conduct with inmates will be guilty of a felony. They could face up to 40 years in prison and a fine of up to 100-thousand dollars.
The state also had no specific ban on window peeping. The legislation Doyle signed Wednesday makes the crime a misdemeanor punishable by up to nine months in jail.
The sex offender bills prohibit registered offenders from changing their names and increase penalties for felony sex offenders who fail to register.