A hybrid probe with luminescence, recognition, and magnetic property was synthesized.
UCNPs and aptamers were combined as the signal source and target recognition elements in the probe.
A sensing system for quantification enrofloxacin based on the probe was developed.
Selective, accurate, and sensitive detection of enrofloxacin in different real samples is possible.