Detection and recognition of smells