Your iPhone XS or later can warn you if there's liquid in the Lightning port.
Liquid Detected in Lightning Connector: What to Do Next
What to do if you see a liquid-detection alert on your iPhone
3-in-1 MagSafe Charger for iPhone 15, 14, 13, 12
Liquid Detected in Lightning Connector: What to Do Next
The complete lowdown of all Eve Water Guard functions
Apple iPhone 15 Pro Max Dual Sim 256GB 5G (White
Liquid Detected in Lightning Connector: What to Do Next
Apple iPhone 15 Pro Dual Sim 1TB 5G (White
What to do if you see a liquid-detection alert on your iPhone