Robert Stewart, 51, admitted a sexually aggravated breach of the peace by conducting himself in a disorderly manner and simulating sex. He has been placed on the Sex Offenders Register for three years.
Mr Stewart was caught in the act with his bicycle by cleaners in his bedroom at the Aberley House Hostel in Ayr.
quote :
"The accused was naked from the waist down, holding the bike and moving his hips back and forth as if to simulate sex."
Both cleaners, who were "extremely shocked", told the hostel manager who called police.
Stewart had denied the offence, claiming it was caused by a misunderstanding after he had too much to drink. The bachelor had been living in the hostel since October 2006 after moving from his council house in Girvan.
BBC News Nov 14 2007