SIBO testing works by measuring either the amount of gas produced by the bacteria in your digestive system (with breath testing), or by looking for biomarkers in your blood that indicate the presence of SIBO (with blood testing).