The QCM consists of a quartz crystal that vibrates at a specific frequency when an alternating current is applied. When a substance adsorbs onto the surface of the crystal, the mass change causes a shift in the resonant frequency. The shift in frequency is directly proportional to the mass of the adsorbed substance, allowing for precise measurements at the nanogram level.