Smart toilets use sensors to analyze urine and stool samples. These sensors can detect various biomarkers, including glucose levels, protein, blood, and other substances that can indicate health issues. The data collected is often transmitted to a connected app or directly to healthcare providers for further analysis.