Dev.to Security ๐Ÿ” Cybersecurity ๐Ÿ‘ 0 ๐Ÿ“– 9 min read

Rainy Season and a Phone Security Camera: Why It Says 'Moisture Detected' and Stops Charging, Why the Lens Fogs, and How to Keep It Recording Offline

Short answer: In humid or rainy weather, an old phone used as a security camera usually fails at the charging port first, not at the camera. Samsung's support page says its phones "will not charge if moisture is present

Short answer: In humid or rainy weather, an old phone used as a security camera usually fails at the charging port first, not at the camera. Samsung's support page says its phones "will not charge if moisture is present in the charging port," and that the water "will naturally evaporate from the charging port within approximately 1 to 2 hours." Google's Pixel help page describes the same protection with a different message: "Liquid or debris in USB port." For those hours the phone runs on its battery while the cable is still plugged in. If the battery is old, the camera can go dark before the port dries. The fix is mostly about where you put the phone and how the cable reaches it, not about buying anything.

This is a plain-English guide for people using a spare Android phone as an offline security camera at home, in a shop or in a storeroom, often without internet, through a long wet season. No special equipment, no subscription, no credit card.

Why does my phone camera say "moisture detected" and stop charging?

Many Android phones check the USB-C port for liquid before they let current flow. This is a safety feature, not a fault.

Here is what the two biggest phone makers say on their own support pages:

  • Samsung: "Samsung devices will not charge if moisture is present in the charging port when it is plugged in. This is a preventative measure added to avoid corrosion." The page also says that if you plug in a charger while the port is wet, "you will hear an alarm go off with steps to disconnect the charger," and "the alarm will continue to sound until the charger is disconnected."
  • Google Pixel: the phone shows "Liquid or debris in USB port." Google's advice is to wait "a few minutes until you get the message 'OK to use USB port.'" If the message stays for two hours or more, Google says to contact support.

Two things in there matter a lot for a camera phone that nobody is holding:

  1. The cable stays plugged in, but no power goes in. From across the room, everything looks normal. The phone is quietly running on its battery.
  2. On a Samsung, an alarm can sound until someone unplugs the charger. In a shop that is closed for the night, nobody is there to unplug it.

So the real question in the rainy season is not "is my camera waterproof?" It is "how long can this phone run on battery alone while the port dries?"

How long will the camera keep recording when charging stops?

That depends only on the battery. A phone recording with the screen off uses less power than one with the screen on, but it still uses power, and an old battery holds much less than it did when new.

Samsung's own number gives you the window to plan for: about 1 to 2 hours for the port to dry. Your phone needs to survive at least that long on battery, with some spare.

How to check, before the rain does it for you:

  1. Charge the phone to full.
  2. Start recording the way you normally do.
  3. Unplug the cable and note the time and the battery percentage.
  4. Check again after one hour.

If the battery dropped by more than about a third in that hour, the phone probably will not get through a long wet spell. I wrote a separate guide on checking an old phone's battery before using it as a security camera, including how to read battery health without buying an app. The same test also tells you how the camera will do in a power cut.

Where should I put a phone camera in the rainy season?

Most moisture problems start with placement. These rules cost nothing.

Keep it indoors, looking out. A phone behind a door, a shop shutter or a window is far safer than a phone on a veranda or under an awning. Rain blows sideways, and an awning does not stop spray. Most phones have no cover over the USB-C port, so even a phone sold as "water resistant" has an open hole facing the weather.

Do not point the air conditioner at it. This one surprises people. Water condenses on anything colder than the air around it. A phone sitting in the cold stream of an AC unit, next to a door that opens to hot, wet outside air, is exactly that cold thing. The result is fog on the lens and, worse, moisture inside the port. Put the phone where the air around it is the same temperature as the room.

Watch out for windows that "sweat." If the inside of a glass pane gets wet on humid mornings, a phone lens pressed against that glass will see nothing but grey. Leave a small gap, or choose a spot where the glass stays dry.

Do not seal it in a box. A closed plastic box keeps rain off, but it also traps heat, and a phone that is charging and recording all day already runs warm. I have covered the heat and battery-swelling side of 24/7 recording separately. In a humid place, a closed box can also hold the damp air in. A shelf with a little air around it is usually better.

How should the charging cable reach the phone?

Water follows the cable. If the cable runs downhill into the phone's port, any drop on the cable can end up in the port.

  • Give the cable a "drip loop." Let the cable hang lower than the port for a short stretch before it rises back up to the phone. A drop running along the cable falls off at the bottom of the loop instead of running into the phone. Electricians use the same trick on outdoor wiring.
  • Mount the phone with the port facing down or sideways, never up. A port facing the ceiling collects anything that drips.
  • Keep the plug end and the extension board off the floor. In heavy rain, floors near shop doors get wet first.
  • Use one good cable. Google's Pixel page says, "Use the cable that comes in the box with your phone." A loose, worn cable is more likely to trigger warnings than a firm one.

What to do when the warning appears

Do what the phone makers say, and nothing more:

  1. Unplug the charger from the wall first, then from the phone. Google's page warns the cable "could be very warm."
  2. Gently shake the phone with the port facing down. Samsung suggests this to help remove water.
  3. Let it dry at room temperature. Google says to set the phone "on a flat surface to dry at room temperature."
  4. Do not put anything into the port. Both Samsung and Google say this clearly. No pins, no cotton buds, no toothpicks. Samsung says it "can result in damage to the charging port."
  5. If your phone supports wireless charging, use it in the meantime. Samsung says "wireless charging is not affected by moisture or foreign objects in the charging port." Many budget phones do not have wireless charging, so check your model's specification first.
  6. If the warning lasts two hours or more on a Pixel, or does not clear on a Samsung, get it checked. Google also says that if the port looks "burned, melted, or corroded," you should stop and seek a repair.

If the warning keeps coming back with no water anywhere near the phone, Google's Pixel page gives a step you can try: in Settings > Apps, show system apps, find "USB Settings" or "Android System", then tap Storage & cache > Clear cache. Only do this once the port is clean and dry.

Why is my security camera picture foggy in the morning?

A foggy picture on a humid morning is usually condensation on the outside of the lens, or on a window in front of it. It is the same physics as the AC problem above: a surface colder than the air around it collects water.

What helps:

  • Keep the phone at room temperature. Away from the AC stream and away from cold walls.
  • Wipe the lens with a soft, dry cloth when you are there. Do not use water or cleaning spray on the phone.
  • If the fog clears by itself in an hour, it was surface condensation. If it never clears, or you see a misty patch inside the lens, the phone may have moisture inside. That needs a repair shop, not a cloth.

This is also why I recommend checking your camera from another phone after every heavy rain. With Background Camera RemoteStream (disclosure: I build it), you can open the live view in a browser on any phone or computer on the same Wi-Fi. No cloud account is needed and no internet plan is needed for that local view. If the picture is grey, foggy, or not loading, you know to go and look before you need the footage.

What the app does here, and what it does not

To be clear about limits:

  • The app records with the screen off, keeps footage on the phone (no cloud storage), and runs a built-in web server so you can watch live from another device on the same network. It can also stream to YouTube Live if you do have internet.
  • The app cannot stop the phone's moisture protection, and should not. That protection exists to prevent corrosion, and a corroded port means no camera at all.
  • The app cannot make an old battery last longer. If the battery is weak, the battery test above is the honest fix.

A simple rainy-season checklist

Do this once at the start of the wet season:

  • [ ] Phone is indoors, looking out through a door, shutter or dry window.
  • [ ] Phone is out of the AC airflow.
  • [ ] Port faces down or sideways.
  • [ ] Cable has a drip loop, and the plug and extension board are off the floor.
  • [ ] The phone is not sealed in a closed box.
  • [ ] You have done the one-hour battery test and the phone lost less than about a third.
  • [ ] You know where your phone shows the moisture warning, and you know not to put anything in the port.

And after each heavy rain:

  • [ ] Open the live view from your own phone and check the picture is clear.
  • [ ] If it is not, go and look: wipe the lens, check for a moisture warning, let the port dry.

If you are setting up a camera for a shop for the first time, my guide to watching your shop with an old Android phone, with no internet plan, no subscription and no credit card covers the full setup. And if your problem is the opposite season, a phone in an unheated room has its own charging rule, covered in why a phone camera in an unheated room stops charging long before it stops recording.

What I cannot tell you

  • I cannot tell you how long your phone will run on battery. Only the one-hour test can.
  • I cannot tell you exactly what humidity level triggers a warning. Neither Samsung's nor Google's page gives a number, and I am not going to guess one.
  • Not every Android phone has moisture detection. Some will simply keep charging. Treat the placement rules above as the main protection either way.

The short version

In the rainy season, a phone security camera usually fails at the charging port, not the camera. Samsung phones stop charging when they detect moisture and say it takes about 1 to 2 hours to dry; Pixel phones show "Liquid or debris in USB port." Keep the phone indoors and out of the AC stream, give the cable a drip loop, never poke the port, make sure the battery can last a couple of hours on its own, and check the live view after every storm.

Background Camera RemoteStream is an Android app that records with the screen off, keeps footage on the phone, and lets you watch live over your own Wi-Fi without a cloud account. Get it on Google Play ยท superfunicular.com

Sources: Samsung UK Support, "What to do if there is moisture in your water-resistant Samsung phone or tablet" (updated 3 March 2022); Google Pixel Phone Help, "Fix 'Unplug charger' or 'Liquid or debris' message." Both checked 27 October 2026.

๐Ÿ“ฐ Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.