Quantification of the amount of caffeine in a sample. The trait is caffeine measurement (EFO_0021177).