The overall goal of this protocol is to synthesize functional nanosensors for the portable, cost-effective, and rapid detection of specifically targeted pathogenic bacteria through a combination of magnetic relaxation and fluorescence emission modalities.