Here are a few things not to do:
Don’t dry your iPhone using an external heat source or compressed air.
Don't insert a foreign object, such as a cotton swab or a paper towel, into the connector.
Don’t put your iPhone in a bag of rice. Doing so could allow small particles of rice to damage your iPhone.