Biosensors for pathogen detection