ST. CLOUD (WJON News) -- A man from Proctor, Minnesota has pleaded guilty to a felony charge after getting caught in an undercover child sex sting in St. Cloud.

According to the charges, 28-year-old Joseph Farley logged onto an online chat room and began a sexual conversation with whom he thought was a 15-year-old girl. Farley exchanged text messages and pictures on two separate occasions last July.

Investigators used a search warrant to find electronic devices at the man’s home and search for evidence.

Farley has pleaded guilty to distributing material describing sexual conduct to a child through electronic communication. Two other charges, including the solicitation of a child, will be dismissed at his sentencing hearing on October 13th.

Most popular grocery stores in America

The most popular grocery stores in America, from corporate chains to family-owned enterprises. Stacker ranked them using consumer ratings sourced from YouGov polls.

LOOK: Things from the year you were born that don't exist anymore

The iconic (and at times silly) toys, technologies, and electronics have been usurped since their grand entrance, either by advances in technology or breakthroughs in common sense. See how many things on this list trigger childhood memories—and which ones were here and gone so fast you missed them entirely.

The 100 Best Places to Live on the East Coast