LOUISVILLE, Ky. (WDRB) -- A Louisville man was arrested in Shelby County Wednesday morning after authorities say he drove to Simpsonville thinking he was going to meet a 15-year-old for sex.

Instead, he met authorities.

According to an arrest report, 51-year-old Wayne Martin Wilson responded to an online ad and began conversing with someone he thought was a 15-year-old girl. In actuality, authorities say, he was interacting with an undercover investigator.

Wilson allegedly sent the undercover investigator text messages and e-mails arranging to meet in Simpsonville so that they could engage in sex acts -- again, under the impression that he was interacting with a 15-year-old girl.

According to the arrest report, Wilson traveled to the arranged meeting location on Jurich Court in Simpsonville, just west of the intersection between Champions Way and Old Veechdale Road. He arrived just before 9 a.m. Wednesday -- and was met by authorities.

He was arrested by the Kentucky Office of the Attorney General and charged with engaging in the prohibited use of an electronic communications system to procure a minor or peace officer for sexual offenses.

He is currently being held in the Shelby County Detention Center.

Copyright 2016 by WDRB News. All rights reserved.