Piezo drop-on-demand inkjet printers are used in an increasing number of applications because of their reliable deposition of droplets onto a substrate. Droplets of a few picoliters are ejected from an inkjet nozzle at frequencies of up to 100 kHz. However, the entrapment of an air microbubble in the ink channel can severely impede the productivity and reliability of the printing system. The air bubble disturbs the channel acoustics, resulting in disrupted drop formation or failure of the jetting process. Here we study a micro-electro-mechanical systems-based printhead. By using the actuating piezo transducer in receive mode, the acoustical field inside the channel was monitored, clearly identifying the presence of an air microbubble inside the channel during failure of the jetting process. The infrared visualization technique allowed for the accurate sizing of the bubble, including its dynamics, inside the intact printhead. A model was developed to calculate the mutual interaction between the channel acoustics and the bubble dynamics. The model was validated by simultaneous acoustical and infrared detection of the bubble. The model can predict the presence and size of entrapped air bubbles inside an operating ink channel purely from the acoustic response.