To cut down on warranty claims, Apple has added a background feature with macOS Sonoma that runs liquid detection analysis on every USB-C port on a Mac.
Your Mac can now know if there's water in USB-C ports with this macOS Sonoma feature. Apple is no stranger to challenges related to liquid damage in its devices.