The discrimination and recognition of biological targets, such as proteins, cells, and bacteria, are of utmost importance in various fields of biological research and production. These include areas like biological medicine, clinical diagnosis, and microbiology analysis. In order to efficiently and cost-effectively identify a specific target from a wide range of possibilities, researchers have developed a technique called differential sensing. Unlike traditional “lock-and-key” sensors that rely on specific interactions between receptors and analytes, differential sensing makes use of cross-reactive receptors. These sensors offer less specificity but can cross-react with a wide range of analytes to produce a large amount of data. Many pattern recognition strategies have been developed and have shown promising results in identifying complex analytes. To create advanced sensor arrays for higher analysis efficiency and larger recognizing range, various nanomaterials have been utilized as sensing probes. These nanomaterials possess distinct molecular affinities, optical/electrical properties, and biological compatibility, and are conveniently functionalized. In this review, our focus is on recently reported optical sensor arrays that utilize nanomaterials to discriminate bioanalytes, including proteins, cells, and bacteria.