Police in Miami have sniffed out the trail of a man who, they say, has been surreptitiously crawling underneath tables inside the main library on the campus of Florida International University to smell women’s feet.

The alleged foot-smelling bandit is Eddy Juan, reports NBC Miami.

Juan, 52, was apprehended on Tuesday afternoon.

The arrest was quite a scene. Cops spotted Juan riding a scooter a couple miles south of the FIU campus. When police tried to pull him over, he took off on the scooter and eventually crashed.

“Police officers saturated the area and located the individual riding a scooter,” an FIU police department statement narrated. “The individual attempted to flee and was apprehended and arrested. FIUPD appreciates the involvement of the concerned citizens of Miami-Dade County, who provided the information that led to this arrest.”

Cops on the Florida International had previously released an alert seeking help in identifying the olfactory outlaw.

Students had snapped photos of Juan in the act of foot-sniffing — down on the carpet and looking worse for the wear.

Juan is a registered sex offender with a rap sheet dating back over two decades. He has previous arrests for indecent exposure and lewd and lascivious behavior on a child.

Read more from The Daily Caller