Connectors and wires for long distance sensor connection like DHT22 etc

Hi,

I have a small garden area I like to measure humidity and temp. What would be a clean/proper way of connecting and extending a bunch of DHT22/AHT22 over a span of 1-2 meters? Something better than header pins and jumper cables.

Current ideas I have in mind are those UTP LAN cables and JST XH connectors.

  • Will these sensors and cables get wet ?

  • Dry conditions can accommodate Mini JST 2.0 PH connectors, highly suggest you make your own, tools are required.

I would use 3 conductor wire with shield, grounding the shield only at the Arduino side. You can do a custom PCB, I do that a lot with Nano. They make some nice connectors called airplane connectors that can be gotten in various configurations. These could be mounted to a standard electrical box, plastic case, etc.
image

For a better answer we need to know which Arduino you plan on using and what it is going to be housed in.

As much as possible, no but it will get sprayed upon if the wind is strong and the direction is to the sensor.

Sorry, you mean a crimp tool right?

Say I have this DHT22 (can be either below), would that mean I will have to attach it to a/another PCB that connects to the airplane connectors?

images

Wire to wire (2,3,5, and more pin connectors are available, O-ring sealed):

Wire to chassis (seals around the wire on tightening):

Are you using you sensor as is? Or is it placed on some PCB or sort of box/chassis? Yes you need some hard base to attach connectors and your sensor to. Garden area means water, humidity, splashes and tiny animals roaming inside of your hardware. Sometimes I find lizard eggs in old electric equipment which is outside of the house :slight_smile:

What wire would you use here?

It is as-is. I can attached the bare one (those without PCB) to another PCB but the ones I have are both DHT22 types (PCB and bare). We usually connect them to jumper/dupont cables then to the breadboard but connecting them to form a longer dupont cable isn't really suitable for outside use.

A better approach would be most helpful.

I agree. For the enclosure, I can do a sealed ABS enclosure but that wouldn't go well for the wiring and connection. The idea I have so far is strip a bunch of UTP LAN cable and solder them to the DHT22 or crimp them some header connectors and then connect them to the DHT22 and then seal them all up with a heat tube. Crude, yes but it's the only thing I can see that could work. JST connectors looks more promising as it prevents connections from loosening up from wind or animal movement but wont prevent the moisture from seeping in.

I saw the connectors you provided, I see them used in audio devices (if I'm correct). What wires do you use for them?

I use ethernet UTP. Fits well.

Well, you can just solder your wires to sensor pins without any connector and put some silicon sealant or epoxy resin over the contacts to prevent water from coming in.

I think DHT sensor is not designed to survive rains as well. So it needs to be mounted well above the ground and have some sort of a roof over it.

The second picture is exactly for that. Make a hole in your enclosure, fit this metal part (Google knows it as "metal cable gland"). When you put your wire through this you can tighten it. It has a small rubber seal inside which seals the cable.

  • Yes

Nope, attach the lead wire to the sensors cover the leads with heat shrink and the other end of the wire goes to the plug. If you make a spare a fault can be replaced very fast.