A State Court judge sentenced Mark McLeod to 24 months probation Friday. He was also ordered to undergo a mental health assessment and stay away from Cyrus.
McLeod had been jailed since Aug. 4 after police said he twice traveled to Tybee Island on the Georgia coast looking for the 16-year-old "Hannah Montana" star as she filmed the movie "The Last Song." Investigators said he resisted officers who tried to remove him.
Prosecutors offered McLeod a deal after a grand jury declined to indict him on felony charges.
McLeod's attorney says his client never posed a threat.