Corded and cordless tools work with electricity that doesn't work in wet conditions, 5 days ago. However, in general, a cordless drill should not be wet or used in the rain, as it can damage and even ruin the drill. When working with power tools near water, you must take additional measures. Water not only poses a risk to your tools, but also to you.
Especially with corded tools, water can be a (fatal) hazard. You should never use a corded tool in a damp area. Unless you have a power tool that explicitly states that it is safe for use in the rain, you should not use a power tool in humid conditions. Using power tools in the rain increases the risk of electric shock, and rain could also cause irreparable damage to power tools.
Safety is paramount, so wait until the weather is drier. In most cases, power tools are not safe for use in the rain. For your own safety and the safety of your tools, wait until the weather is drier. Unless you have an exceptional power tool that explicitly states that it is safe for use in the rain, you should not use a power tool in humid conditions.
First remove the battery and open the side of the drill. Then spray the inside of the drill bit with a conformal coating designed to protect sensitive electronic components from aggressive elements. To do this, you can use a coating based on silicone or lacquer. Apply 2 or 3 coats to be really safe.
Then open the battery if you can and do the same with it. It shouldn't be a big problem if they have brushes (motors). I have an M18 brushless drill that will stop working if water gets in, but brushed motors usually work well. You might want to open them up and spray some WD-40 on the bearings.
If you're working on a big project and don't want to have to take out every tool every time you start, place a canvas and store your tools in it. While this step is not always necessary or mandatory, if the tool in question was actually soaked or completely submerged in water, you may consider opening it. The next obvious step to prevent water or moisture from causing further damage to the tool is to use a towel or cloth to completely wipe the outside of the tool. The first thing to do if your cordless drill or power tool gets wet is to immediately remove the battery or power supply from the tool.
This is a way to protect your power tools from the rain so you can continue to work without worrying about ruining them. Make sure the power tool is turned off and unplugged from the power source and remember to be careful when removing the tool. Once you've completed all of the above steps, the best thing to do with a power tool that got wet is to let it dry completely a few days before trying to use it. If desired, it is possible to dry power tools without disassembling them; however, it will not clean or dry as well as blow-drying a disassembled tool.
However, the most important thing is not to activate the power tool or pull the trigger of the cordless drill, if it still has power, while it is wet, as this could damage the tool or cause a short circuit. For the same reasons why you shouldn't use power tools in the rain, you shouldn't use power tools that just rained on. If the tool gets wet without you knowing it, for example, during a night rain, it should still be OK, just remove the battery as soon as you discover that the tool is wet. Cordless power tools generate electricity through their batteries, which means they are as dangerous as corded power tools and should never be used in humid conditions.