Bacterial-driven dental caries and tooth discoloration are growing concerns as the most common oral health problems. Current diagnostic methods and treatment strategies hardly allow simultaneous early detection and non-invasive treatment of these oral diseases. Herein, a wearable multifunctional double network hydrogel combined with polyaniline and barium titanate (PANI@BTO) nanoparticles is developed for oral microenvironment visualized sensing and sonodynamic therapy. Due to the colorimetric properties of polyaniline, the hydrogel displays a highly sensitive and selective response for visualized sensing of oral acidic microenvironment. Meanwhile, the barium titanate in the hydrogel efficiently generates reactive oxygen species (ROS) under ultrasound irradiation, realizing non-invasive treatment in the oral cavity. Through bacterial elimination experiments and tooth whitening studies, the hydrogel can achieve the dual effect of effectively inhibiting the growth of cariogenic bacteria and degrading tooth surface pigments. Owing to the visualized sensing of the oral acidic microenvironment and efficient sonodynamic therapy function, the proposed hydrogel system offers a solution for the prevention of caries and tooth whitening, which is promising in developing the biomedical system targeting the simultaneous sensing and therapy for oral diseases.