Sheffield Crown Court heard Borres has no previous convictions but has warnings on his record from 2005.
Borres, 30, of Weeland Road, Eggborough, Selby, pleaded guilty to attempting to arrange a child sexual offence, attempting to incite a child to engage in penetrative sexual activity and attempting to engage in sexual communications with a child, on December 23, last year.
Judge Michael Slater said Borres was a “vulnerable person with significant problems of your own.”
He said a two-year prison sentence would be “well justified,” but suspended it for two years, because Borres would receive better supervision where he is.
Borres must carry out 30 days of rehabilitation and a five-year Sexual Harm Prevention Order was imposed. Borres was warned he would be sent to prison if he disobeyed.