Smart filament dry box with a humidity display
An airtight storage box holds two spools on printed bearing rollers, feeds filament out through sealed PTFE tubes, and shows the humidity inside on an OLED via an SHT40 sensor and ESP32, so you know when to swap the desiccant.

Safety first
- This box keeps dry filament dry; it does not dry wet filament. Use a proper filament dryer or the maker's recommended oven method for that.
- Regenerate silica gel only at the temperature on its package, in a ventilated place, and never in a food oven you cannot clean. Keep beads away from children and pets.
- Route the USB cable through a sealed grommet; do not run mains inside the box.
Parts
| Part | Qty | Approx. each | Subtotal |
|---|---|---|---|
| IRIS USA WeatherPro airtight storage box, 19 qtCheck inside width and height fit two spools on rollers before buying. Typical $15-30, no verified link.Amazon (search) | 1 | $20 | $20 |
| Adafruit SHT40 temperature and humidity sensorPrice seen $5.95 on Adafruit (Nov 12, 2026).Adafruit | 1 | $5.95 | $5.95 |
| STEMMA QT / Qwiic JST SH 4-pin to female socket cableTypical $1-3, no verified link.Amazon (search) | 1 | $1 | $1 |
| Espressif ESP32-DevKitC-32E (DevKitC V4) development boardOfficial Espressif 38-pin DevKitC V4 with ESP32-WROOM-32E (4 MB). Micro-USB port, not USB-C. Buy only the official 38-pin Micro-USB board, not a USB-C or 30-pin clone. Primary listing: Mouser 356-ESP32-DEVKITC32E, $10.20, 1,701 in stock on Nov 12, 2026, per Findchips (https://www.findchips.com/search/ESP32-DEVKITC-32E). The Mouser US page itself returned 403 to a direct fetch, so click-confirm the US storefront before you order. Mouser Netherlands listed 1,622 in stock at €8.60 the same day. Do not use DigiKey as the default today (search snippets showed 0 in stock / long lead time). Official Amazon listing https://www.amazon.com/dp/B09MQJWQN2 was still unavailable; use it if it returns. Amazon search for the official board: https://www.amazon.com/s?k=ESP32-DevKitC-32E. Adafruit #3269 remains $15.00 and was out of stock (https://www.adafruit.com/product/3269). Typical $10-16.Mouser | 1 | $10.20 | $10.20 |
| UCTRONICS 0.96-inch SSD1306 I2C OLED (128x64)Price seen $6.99 in our parts catalog (Nov 12, 2026). Typical $5-9.Amazon | 1 | $6.99 | $6.99 |
| 608ZZ ball bearings (10-pack)Typical $6-11, no verified link.Amazon (search) | 1 | $8 | $8 |
| Indicating silica gel beads, 2 lbTypical $11-20, no verified link.Amazon (search) | 1 | $15 | $15 |
| PC4-M10 pneumatic fittings (10-pack)Typical $6-11, no verified link.Amazon (search) | 1 | $8 | $8 |
| Capricorn PTFE tube 1 mOr any 2 mm ID, 4 mm OD PTFE tube. Typical $8-14, no verified link.Amazon (search) | 1 | $10 | $10 |
| 5 V 2 A USB wall adapterTypical $5-10, no verified link.Amazon (search) | 1 | $7 | $7 |
| Estimated total (parts only) | $92.14 | ||
Typical US prices, checked 2026-11-12. Prices change and multi-packs are often cheaper per piece.
As an Amazon Associate I earn from qualifying purchases. Prices change; check the store.
Filament
PETG (1.75 mm): about 200 g (66 m), roughly 12 h of printing.
PETG, 0.2 mm layers, 20% infill, 3 walls for the roller holders.
AI agents you'll use
- Code helper (ChatGPT, Claude, Gemini or Grok): Writes the ESP32 sketch: read the SHT40, show humidity and temperature on the OLED, and flag "change desiccant" above a set humidity.
- Materials helper: Explains which filaments are most moisture-sensitive (nylon, TPU, PETG) and safe drying temperatures from the maker's datasheet.
Tools
- Drill with a step bit
- Small screwdriver
- Soldering iron or pre-crimped cables
- USB data cable
What you'll learn
- Why filament absorbs water and how desiccant works
- Reading an I2C humidity sensor
- Low-power displays and simple alerts
- Sealing a box around tube fittings
PETG strings, nylon pops, TPU bubbles: most of it is moisture. Keep your spools in a sealed box that tells you its humidity, and print straight out of it.
What you'll build
A 19-quart airtight box with two printed spool holders on 608 bearings, a cup of indicating silica gel, and two PTFE tubes leaving through PC4-M10 fittings drilled into the side. An SHT40 inside reads humidity; an ESP32 and OLED on the lid show it and flash a warning when it rises above your limit (for example 25% RH).
The cost range is $80-105 for the parts listed below, allowing about 10% either way for price swings.
Print the parts
Print two roller holders sized for 608 bearings and your spool widths, a desiccant cup with holes, and a small lid enclosure for the ESP32 and OLED. Search Printables for "dry box spool roller 608" and credit the designer.
Wiring
| From | To | Notes |
|---|---|---|
| SHT40 (inside the box) | ESP32 3V3 / GND / GPIO21 SDA / GPIO22 SCL | Use the STEMMA QT cable through a sealed hole. |
| OLED | ESP32 3V3 / GND / GPIO21 / GPIO22 | Same I2C bus, address 0x3C; SHT40 is 0x44. |
| ESP32 | 5 V USB adapter |
Step-by-step
- Measure your spools and print the roller holders.
- Drill holes for the two fittings and the sensor cable; seal around them.
- Wire the SHT40 and OLED and flash the sketch.
- Load dry spools, fill the cup with fresh indicating beads, close the lid.
- Watch humidity drop over a few hours, then set your warning level.
- Regenerate or replace the beads when the warning shows or their color changes.
Code
Arduino-ESP32 with the Adafruit SHT4x and SSD1306 libraries.
Prompt for the code helper:
Write an Arduino-ESP32 sketch: read an SHT40 at 0x44 every 30 s and show RH% and temperature on an SSD1306 128x64 OLED at 0x3C (I2C on GPIO21/22).
If RH is above WARN_RH for 10 minutes, show a "change desiccant" message and blink. Dim the OLED after 1 minute and wake it every 30 s for a refresh to reduce burn-in.
Troubleshooting
- Humidity never drops: The lid or a hole leaks. Check the seal and the grommets.
- Readings stuck: The sensor cable is loose or the address is wrong. Run an I2C scanner.
- Filament drags: Spool rollers are misaligned or the PTFE path has a sharp bend.
Files, code and docs
- Adafruit SHT4x library (BSD)
- Adafruit SSD1306 library (BSD)
- Installing the Arduino-ESP32 core (Espressif docs) (Vendor docs)
Last checked 2026-11-12. Double-check parts against your own board and seller listings before you buy.