I'd say there are several steps: pattern recognition---this is my species. Killer whales react to images of their species. Then motion recognition: because we live in air, and use sound, we don't recognize that body motion could rearrange the environment in a similar way: wiggles and water make a current we wouldn't read, but I'm betting fish do. And finally chemical recognition: when they've let the other close, probably the chemicals of their slime coat 'smell' right, and probably 'smell' like the particular 'nem they call home. Human brains aren't set up to react strongly to pheromones on a conscious level, though we do subconsciously: we just don't intellectualize most smells, and likewise the olfactory bulb near the base of the brain operates in a 'forgetting' and 'remembering' sort of way: if we're around a smell constantly it just wears out the receptors and we stop 'smelling' it though the odor is there; but if we haven't smelled it in a while it gets our attention. Lower animals may actually spend more neural circuits than we do, proportionately, on attention to smells.