To fix the moisture detection issue on your phone, you can try cleaning the USB port, changing the USB cable, disabling fast charging, try the rice-method to dry the phone or you can completely reset the phone.