An optical detection device is provided for analysing analytes in a liquid suspension or solution that can detect and process a large number of wavelengths of incident and fluorescent light simultaneously, which is small in size and can be easily adapted to different investigation requirements. In one embodiment an optical detection device comprises a light supplying means (45), an analyte handling means, (78), a light directing means (19), and detection means, integrated on planar substrate devices (40), (20), and (30), (30′), respectively. A plurality of optical waveguides are integrated in the substrate devices to direct light emitted by the light supplying means (45) through the different sections of the optical detection device to the detection means. The analyte handling means (78) comprises an analyte channel (70) for the liquid flow of the analyte suspension or solution and an analyte sorting means (72) comprising several sorting channels (72′).