Compact detector of pathogens in water management systems for field use