Foodstuffs often experience great damage as a result of various forms of infestation or plague. A very common plague is a form of larval infestation that attacks several fruits, including apples. A novel method to identify larval infestations in apples is introduced. This noninvasive method is based on the use of ultrasonic waves, wavelets, and statistical analysis. A wavelet algorithm was preferred over other techniques because it allows a better description of the ultrasonic signal received from the fruit. A total of 998 red delicious apples were sampled, of which, 291 apples were infested by Cydia pomonella. All samples were scanned using ultrasonic waves, and reflecting signals were analyzed with wavelets to determine whether the fruit was intact or infested by larva. The experiments were validated using normality tests and analysis of variance and corroborated by comparing the results with the physical evidence in the specimens. The results show that the signal is attenuated at the center of the apple, which means that the density inside the apple changes as a result of the presence of larva. In addition, the proposed method effectively detected (p<0.01) the presence of larva within the fruit in real time.