Pathogen detection based on carbohydrate adhesion