Police said a Lexington man thought he was about to meet a 15-year-old girl, for sex.
But he reportedly met a detective instead.
According to police, Ruben Hernandez, 20, had been texting with the undercover detective.
Investigators said Hernandez thought the detective was a teenage girl.
Police reports show Hernandez admitted to arranging the meeting to have sex with the so-called teen.