A Hudson Valley man who admitted he sent sexual pictures to a 14-year-old local girl is heading to prison.

In Sullivan County Court, 40-year-old James Trojahn of Liberty was sentenced to four years in prison and 10 years of post-release supervision for disseminating indecent material to a minor, a sexually motivated felony.

In Nov. 2016, Trojahn admitted in court that sent a picture of his of his genitals to a 14-year-old girl and solicited her to have sex with him.

The Fallsburg Police Department began an investigation into Trojahn's behavior after the girl reported the incident to a guidance counselor at her school.

The investigation revealed that Trojahn did not engage in any physical sexual conduct with the victim, police say.

"This case highlights why we need to be constantly engaging our children and speaking with them about what is going on in their digital worlds, and, if anyone is propositioning them or soliciting pictures from them we need to make sure that they know that they should report it to a trusted adult,” Sullivan County District Attorney Jim Farrell said. “Individuals, like Trojhan, who engage in these depraved acts need to be behind bars and marked as sexual offenders so society can be protected."

Trojahn will be required to register as a sex offender upon his release from prison.

In honor of Cinco de Mayo we learned the the correct way to cut open up an avocado.

More From Hudson Valley Post