Sex recognition

In order to mate animals need a system of sex recognition in order to identify partners of the opposite sex.