A headspace sampler is an automated laboratory instrument used in gas chromatography (GC) to extract and analyze volatile compounds from solid or liquid samples. Instead of injecting the bulk sample, the device heats a sealed vial, allowing the volatile vapors to collect in the "headspace" above, which is then sampled and injected