Good morning.
When you connect a Lightning cable or accessory to your iPhone, your iPhone can alert you if there is liquid in the Lightning port. If you see one of these alerts, your iPhone has detected liquid in the Lightning port or on the Lightning cable. To protect your iPhone and accessory, charging and connecting accessories are not available until the Lightning port and accessory are dry.
To dry your iPhone: Gently hold your iPhone against your hand with the Lightning connector facing down to remove excess fluid. Leave your iPhone in a dry area with some airflow. After at least 30 minutes, try charging with a Lightning cable or connecting a Lightning accessory.
If you keep seeing the warning, there is still liquid in the Lightning port or under the pins of your Lightning cable. Leave your iPhone in a dry area with some airflow for up to a day. You can try loading or attaching a Lightning accessory again during this time. It may take up to 24 hours to dry completely.
If you have wireless charging, such as magsafe and Qi, you can still use it to charge your iPhone. For best results, make sure the back of your iPhone is dry before placing it on the Qi or magsafe certified charger. If charging doesn’t work either, your iPhone may be damaged and I recommend that you turn to Apple Support.
I hope I helped you!