Stephen Clements thought he was communicating with a 13-year-old girl when he sent pictures of his penis and asked for naked shots in return.
The 26-year-old, from Keenogue Road, Trillick, was jailed for four months this week after it emerged the 'teenager' he thought he was encouraging to commit sex acts was actually a decoy police officer based in England.
The sick dairy farmer already pleaded guilty to attempting to communicate with a female child, encouraging her to reply in a sexual manner for his own gratification and attempting to intentionally cause her to look at an image of a person engaging in sexual activity.
Clements, who had been a senior figure in the Young Farmers Club in Trillick, Co Tyrone, was released on bail to appeal his sentence but risks having his sentence increased as a result.
The presiding judge at Omagh Magistrates Court has already expressed her displeasure at such serious cases as this not being sent to the Crown Court by the Public Prosecution Service (PPS) where she would have been able to send him to prison for longer.
Earlier in the case eyebrows were raised by the judge after Clements claimed medication he was taking for depression could have led to the "inappropriate conduct".
His solicitor told the court in April: "He takes medication, the side-effects of which led to inappropriate conduct at various stages. This is a recognised side-effect of this medication.
"Some of the long-term effects when this medication is taken in excess of six months have caused concern around behaviour changes.
"In my initial reading, it seems to be a recognised side-effect. The recommendation appears to be that it is not taken in excess of a period of 12-24 months.
"My client was on it for two-and-a-half years. Some of the side-effects are behavioural changes, inappropriate behaviour, strong feelings of happiness, enthusiasm and excitement. It's a complicated matter."
This approach was however apparently abandoned last month when Clements pleaded guilty and the case was adjourned for pre-sentence reports.
This week, details of some of the shocking sexual messages he sent the supposed 13-year-old were read out in court.
Clements had struck up communication with a profile which he thought was the schoolgirl through a chat room last October.
In his first message he asked, "ASL?" (age, sex and location).
The decoy said she was 13 and at school to which he claimed to be 18, Irish but working in Liverpool and his family owned a construction company.
Clements engaged in grooming-type language, telling the decoy her profile image was "cute and pretty".
He sent a facial image of himself, then asked her, "to be cheeky" and send him a photograph of her in school uniform. On receipt of this Clements told her the skirt was too long and she should undo some of her shirt buttons.
Communication then moved to WhatsApp and the decoy asked if he minded talking to her as she was 13, which he said he had no issue with.
The next day he asked for more images, including in her PE kit. stating: "Wearing less clothes would be better."
Clements proceeded to send graphic images of his genitals and asked the 13-year-old to send pictures of her naked.
This was followed by Clements sending a further image of his genitalia and requesting more naked images from the decoy.
A few days later he again sent an image of his naked genitals and asked the decoy to "go to the bathroom and pull down her tights".
He asked her more sexually graphic questions which are too graphic to repeat here but involved a discussion about oral sex.
Clements was arrested and during interview accepted he had been engaging in sexual communication with what he thought was a child.
Judge Kelly said: "It's totally explicable. The defendant does not understand the difference between a 13-year-old girl and an adult."
She criticised the PPS for not directing the case to be sent to a higher court, stating: "The maximum sentence I can impose is six months' custody and that's one of the many reasons these cases are not suitable to the lower court.
"The defendant believed he was communicating with a 13-year-old girl. His entire strand of communication was beyond appropriate, yet he carried on believing it was a 13-year-old girl. I have a maximum of six months and by law he must get a reduction for his guilty plea."
Clements will remain on the Sex Offender Register for seven years and made subject to Sexual Offences Prevention Order for the same duration.