A tiny laser and a corresponding light detector has been developed in one production process, on a single chip. The light is transported from the laser to the detector on a specially designed waveguide. That way, the chip can measure the chemical composition of the liquid in which it is submerged.