A method and device for processing an agricultural product is provided. The device includes a chamber having an opening, and a heater operative to heat the contents of the chamber. A sensor having an output is coupled to the chamber, the sensor output being processed to provide information about at least one of: a state of decarboxylation, or a quantity of a material in the contents of the chamber. The method includes loading a quantity of the agricultural product in a chamber having an port and applying an elevated temperature to the chamber to increase a rate of decarboxylation. A property of a gas is measured at the port the measurement being processed to determine one of either: a state of decarboxylation, or a quantity of material in the sample.