it's best to keep it away from anything that can conduct electricity. That includes metal objects, like keys, and water. You can prevent damage by keeping your phone in a bowl of uncooked rice.
When it comes to lag in games, the best way to fix it is to make sure the game is not too busy. You can do this by closing other programs that are running in the background or limiting the number of things your computer can do at the same time.
To fix lag, you'll have to ensure your server is doing well. If your server is doing well, then players will be able to update their Minecraft versions and play with no lag. If your server is not doing well, then your players will be having problems. You can check the status of your server on the official Minecraft website.
It could be that water is still sitting inside the camera. You could try to use a hair dryer to heat the inside of the camera and see if that will dry the water out. If that doesn't work, you'll need to replace the camera.
If you have a stinky bathroom sink, try this DIY trick. Put a cup of baking soda down the drain and then pour a bucket of vinegar over it. The baking soda will soak up the odour of the vinegar and leave your bathroom smelling fresh.