A simple enclosure and mount for a DHT11 temperature + humidity sensor and a NodeMCU. This project is designed around the HiLetgo NodeMCU board available on Amazon but should fit most similar designs.
The NodeMCU is mounted with the face exposed to maximize WIFI signal strength and heat dissipation, and to reduce the effect on the sensor's temperature readings.
Below the NodeMCU is a chamber sized to hold wires with enough clearance for Dupont connectors to connect to the header pins. The base is divided into two chambers for additional thermal isolation, with a vented chamber for the sensor.
Two slots are provided on the lid to fasten the USB power cable with a zip tie, and a flange is included on the base for hanging or screw mounting, though it will work just as well sitting flat on a table or shelf.
Rotate parts in the slicer so flat sides are down; the lid has four risers that should be printed facing up.
It is recommended to print the lid by itself first to check that the NodeMCU and USB power cable fit properly before printing the base.
A video of the base being printed is available on YouTube.
- 4 bolts, M3 size, 12mm or longer
- 1 zip tie.
- 3 female-female Dupont jumper cables
Loosely thread the bolts to align the NodeMCU on the lid, then plug in the USB cable. Holding the NodeMCU flush against the lid, thread the zip tie through the two slots and tighten to secure the cable. Attach wires for the sensor to the appropriate pins on the NodeMCU.
With the lid assembly and the base, thread the loose wire ends through the slot in the wall of the base that is between the NodeMCU chamber and the vented sensor chamber. Attach the sensor to the appropriate loose ends of the wire, then pull and coil excess cable in the NodeMCU chamber. If you used Dupont cables, you can optionally hot glue the plastic headers to the slot in the wall to keep the sensor from moving around.
Place the lid on top of the base, aligning the bolts with the holes, and tighten the bolts gradually in an X pattern until everything is snug. Take care not to over torque and strip the holes with the threads.