The invention provides a beverage production machine having an apparatus for recognising a package. The apparatus comprises two resonant tank circuits, each comprising a coil and a capacitor; two electronic circuits for detecting changes in coil impedance; a means for generating a signal which is indicative of the changes; and means for controlling the beverage production machine according to the signal. The machine also comprises a holder for supporting the package. The package for use in the machine comprises a base unit having a compartment which contains tea material, and a rim with a projecting lip; conductive material associated with the package having two edge sections situated on opposite sides of the compartment; and a lid attached to the base unit around the rim, the central portion of the lid comprising at least one perforated line. The invention also provides a method of recognising the package.