Former primary school teacher Richard Leighfield is due in court for sentencing after he admitted to having a sex chat with a decoy teenage girl.