One of the biggest challenges when building your own environmental monitoring instrumentation is how to get the sensor cable into the waterproof box with the logger. There are several different methods, but I prefer plastic or nylon cable glands. You can get them from a variety of vendors and for many different diameters of cables. They also make ones that allow you to run anywhere from 2 to 6 or more wires into one gland, but those are more complicated to use. In most cases, just the single-cable ones will work. You can get them from most industrial suppliers and electronics companies, but even Amazon has some like these for medium cables, and these for small cables. One thing to keep in mind is the amount of threading on the gland. If your enclosure isn’t too thick, most cable glands will work. But if you’re mounting them on a box that has thick walls, you might need to buy glands with longer threads. To drill your enclosure, I find that step drill bits work best. Just be sure not to remove too much material, otherwise the gland won’t seal properly against the enclosure and you’ll get leaks.
One of the most important things to consider when deploying devices outdoors is what type of enclosure you’re going to use. Many designers say they focus on finding the ideal enclosure first, then they design their circuit board to fit that particular enclosure. For our projects, we have been using Pelican brand waterproof cases. A handy size is their model 1050. I like them for a couple of reasons: they are available in a variety of sizes, and they are vented. The waterproof vent allows the air inside the box to equilibrate with the outside air pressure. This is extremely important when we are using vented pressure transducers because we can simply terminate the sensor’s vent tube inside the enclosure with some dessicant. Without a vented box, the transducers would not give accurate water level readings. Pelican cases are one of the few brands of cases in a convenient size that have a waterproof vent.
The clear cases are handy because you can place a solar panel inside the box to charge your batteries. The only problem is that on sunny days the clear boxes tend to act like little greenhouses. We have measured temperatures over 60 degrees C inside the cases on summer days, which is not very healthy for the batteries and some of the electronics. So depending on your climate and how sensitive the contents of your box are to heat, you might not want to use a clear box for certain deployments.
For a cheaper, non-vented alternative to Pelican cases, I have had good luck with Seahorse Cases. These cases, along with the larger version of Pelican cases, have tabs that allow you to padlock the lid to keep people from tampering with the contents of the case. The small micro cases like the one I linked above do not have locking tabs.