Have you tried to clear the code? If it was just due to being wet then if you clear the code it will not come back on. If the issue still exists then the engine light will come back on.
Here is a helpful video:
The water could have damaged the sensor or could have corroded the connection. Do a visual inspection of the connector and clean if necessary. And clear the code.
If you still have the light come back then likely you will have to replace the sensor.
Please let me know of any questions.
Images (Click to enlarge)
Monday, September 13th, 2021 AT 12:09 PM