The court heard Hawksworth was on the sex offender register at the time after being given a caution for similar offending in 2018 and 2019.
Hawksworth was given a two-year sentence, suspended for two years.
He was also ordered to complete 40 rehabilitation activity requirement days.
Recorder Abdul Iqbal QC said: “I have come to the conclusion that the public interest is better served by reducing the risk from you to members of the public.”