A MARRIED dad groomed a 12-year-old girl in an internet chatroom – then discovered he had been talking to an undercover police officer.

Richard Mackin, 38, pretended he was 22 and sent intimate photographs to the make-believe character he thought was called Sofia.

The Darlington office worker also discussed "penetrative sexual activity", prosecutor Paul Abrahams told Teesside Crown Court.

Mackin dodged prison after a judge heard he had voluntarily sought help, and was considered to be a low risk of reoffending.

He was given a 20-month suspended sentence, and ordered to go on a one-to-one treatment programme.

Judge Peter Armstrong also ordered him to pay £500 towards the cost of the case, and imposed a Sexual Harm Prevention Order to restrict Mackin's computer and internet use and ban unsupervised contact with under-16s.

Paul Cleasby, mitigating, told the judge: "He is a man who confesses to a life-long self-esteem problem and feelings of inadequacy.

"He is very candid with the author of the pre-sentence report, and it paints a picture of a sad individual who has behaved in an abominable way for 14 days of his 38 years.

"He has ruined his good character in the most spectacular way and fallen from grace."

Prosecutor Mr Abrahams told the court that there was a lot of innocuous chat to begin with, then innuendo, before Mackin "stepped matters up a gear".

He said: "Throughout the conversation, it was made plain that the character Sofia was 12 years of age, and he is clearly talking about going to work."

Mackin, of Brankin Road, Darlington, admitted attempting to cause or incite a child to engage in sexual activity and attempting to cause a child to watch a sexual image.

Mr Cleasby said: "He should be dealt with for the actual harm in this case, and because the character was fictitious, there was no harm.

"No child has, in fact, been groomed in the conventional sense. No actual harm came from the grooming."