Sex offenders would be barred from loitering near day care centers in Michigan, under legislation that cleared the state Senate Wednesday.

The upper-chamber voted unanimously to pass the pair of bills that amend the Sex Offenders Registration Act to prohibit sex offenders from loitering within 1,000 feet of a licensed child care center and establish sentencing guidelines.

Under the legislation, a first-time violation would be a misdemeanor punishable by up to a year in prison, a fine of not more than $1,000, or both.

Violators with one or more prior sex crime convictions would be guilty of a felony punishable by imprisonment for not more than two years, a fine up $2,000, or both The bill now heads to the state House for consideration.