Tympanometry is a diagnostic test that evaluates the function of the middle ear. It measures the movement of the tympanic membrane (eardrum) in response to changes in air pressure. This test helps in identifying conditions such as fluid in the middle ear, eustachian tube dysfunction, and perforated eardrum.