A Maryland man is heading to prison for sexually abusing and later raping a Hudson Valley child he met online.

On Wednesday in Ulster County Court, 49-year-old Daniel K. Poole of Port Deposit, M.D., was sentenced to 11 years in state prison followed by 10 years of post-release supervision, the maximum sentence permitted by law.

In July, Poole pleaded guilty to rape and criminal sexual act, both felonies.

Poole admitted that in June of 2016, he had oral sex with a 14-year-old in Ulster County. He also admitted that in October of 2016, he returned to Ulster County and raped the same girl.

An investigation into Poole began in January when officers noticed suspicious activity while participating in K9 training in Rifton, within the Town of Esopus, which led to the discovery that Poole was there to meet a minor.

Police determined that Poole met the young teen online and had inappropriate exchanges with the minor online for almost a year.

Poole traveled to the Hudson Valley on several occasions to engage in sexual acts with the child knowing that the child was underage, police say.

Poole will be required to register as a sex offender for the rest of his life. An order of protection was given for to the victim and her parents until 2046.

Here are this week's Top 5 news stories from the Hudson Valley