A sensor ink for the quantitative detection of components in a closed package/container for flexoprinting or offset printing, comprising at least one fluorophore, a polymeric carrier matrix and at least one organic solvent, wherein a silicon-organic system or a homopolymer or copolymer selected from the group of polystyrenes, polysulfones, polyether imides, polyether sulfones, polyvinylchloride (PVC), polyphenylene oxide (PPO), polysulfone derivatives, polyethylene terephthalate, biobased polymers, polylactic acid, cellulose ester and cellulose ether with a molecular weight of between 80,000 and 300,000, is contained as a carrier matrix, the fluorophore is present in an amount of 1.0 wt. % to 7 wt. %, based on the polymer concentration, and the carrier matrix and the fluorophore together with the organic solvent form a solution having a viscosity of between 20 to 70 mPa·s.