SMS dit: Principles of bacterial detection