Tympanometry is a diagnostic test used to evaluate the function of the middle ear. It measures the movement of the tympanic membrane (eardrum) in response to changes in air pressure. This test provides valuable information about the presence of fluid in the middle ear, eustachian tube dysfunction, and the condition of the middle ear ossicles.