Mohammed, of Stratford Street, Bradford, pleaded guilty to two offences of attempting to engage in sexual communication with a child and one of inciting a child to engage in sexual activity.
Judge Batty said the public would be better served if Mohammed was not jailed so he could attend a programme to prevent him re-offending.
He was also ordered to complete 20 rehabilitation activity requirement days.
The Judge told Mohammed: “You are 23 years of age and have never been in trouble before.
“But you were communicating with a 13-year-old girl. Some of that communication was sexual in nature. That is totally unacceptable.”
You must be logged in to post a comment.