Electronic nose sniffs out bacteria