Skip to the content
PCBKitNew board
2 layers38.1 × 19 mmEnclosure Sensor Board, the printed circuit board in 3D

Chainable I2C MCP9808/BME280 sensor PCBs for multi-point temperature monitoring inside a 3D printer enclosure, plus the Inventor models and SSR characterisation data for the SSR-controlled space heater that closes the loop.

Size
38.1 × 19 mm
Copper layers
2
Thickness
1.6 mm
Parts
20
Nets
9
Pads
58
Tracks, vias
92, 10
Pours
4
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
27 Apr 2026
Updated
27 Apr 2026

Overview

Enclosure Sensor Board is an open-source printed circuit board by PartialScience, from the PartialScience/3D-Printer-Enclosure-Sensors repository on GitHub, published under the MIT licence. It is a 2-layer board of 38.1 × 19 mm with 20 parts on 9 nets, routed with 92 tracks and 10 vias.

It is built around the BME280. Its parts include 8 resistors, 3 capacitors, 2 connectors and 1 switch. It belongs with the sensors and measurement and robots and motor control boards of this library.

Main components

1

README

README.md

3D Printer Enclosure Sensors & Heater Control

Hardware for closed-loop control of the air temperature inside a 3D printer enclosure. The system pairs a chain of small I²C sensor PCBs with a hacked space-heater whose mechanical thermostat has been replaced by a solid-state relay, all driven from a Raspberry Pi running OctoPrint.

The end result is software-controlled enclosure temperature with multi-point monitoring, which is what made it possible to reliably print materials like polypropylene on a stock Ender 3 V3 SE.

Sensor boards

A small, chainable I²C PCB designed to be daisy-chained around the inside of the enclosure to give multi-point temperature readings.

  • MCP9808 high-accuracy digital temperature sensor
  • Optional, depopulatable footprint for a BME280 for combined temperature / humidity / pressure
  • 4-pin power + bus connector on each end so boards chain in series with no glue logic
  • 4-position DIP switch on the back to assign each board's two I²C addresses

No I²C bus repeaters are used. The full chain runs to a Raspberry Pi 4, which tolerates significantly more bus capacitance than the I²C spec calls for -- this lets the design stay cheap and dumb while still working reliably across the full enclosure length.

Two BOM variants are provided in the project:

A printable holder for the assembled board is provided in Sensor Board/Enclosure Sensor Holder/ as Inventor source plus exported .stl and .3mf.

Heater control

A space heater modified by removing its bimetal thermostat and substituting an SSR-40DA solid-state relay so that the heater can be switched from a GPIO. The control loop runs on the Pi and uses the sensor chain above for feedback -- a slow PWM (~1–10 Hz) drives the SSR, and the resulting average power maintains a setpoint via a PID loop in OctoPrint.

Heater/ contains:

  • SSR Holder/ -- Inventor part + exported .stl / .3mf / .wmv for a bracket that mechanically captures the SSR
  • SSR40DA Part/ -- Inventor model of the SSR itself, used while designing the holder
  • SSR Data/ -- bench measurements taken while characterising the SSR's switching behaviour at different drive voltages, captured with Digilent WaveForms. The .csv files in this folder are the raw scope captures:
    • 30V Step Test.csv -- turn-on/turn-off response at 30 V load, nominal control drive
    • 30V Step Test 3v3 Drive.csv -- same, but driven directly from a 3.3 V GPIO (the real use case)
    • 120VAC 3v3 Test.csv -- switching behaviour with a 120 VAC load
  • Notes.txt -- control-loop notes (PWM frequency target)

License

Released under the MIT License -- see LICENSE.

Parts

20
QtyValueFootprintReferences
410KResistor_SMD:R_0805_2012MetricR5, R6, R7, R8
44.7KResistor_SMD:R_0805_2012MetricR1, R2, R3, R4
4MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4
3CCapacitor_SMD:C_0805_2012MetricC1, C2, C3
2Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_HorizontalJ1, J2
12454982-3SamacSys_Parts:24549823S1
1BME280SamacSys_Parts:BME280BME280
1MCP9808T-E_MSSamacSys_Parts:SOP65P490X110-8NMCP9808

Questions

How big is the Enclosure Sensor Board PCB?

It measures 38.1 × 19 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Enclosure Sensor Board use?

20 parts, built around the BME280. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Enclosure Sensor Board KiCad files?

From the PartialScience/3D-Printer-Enclosure-Sensors repository on GitHub, at the commit this page was made from: the board is Sensor Board/Enclosure Sensor Board/Enclosure Sensor Board.kicad_pcb and its schematic Sensor Board/Enclosure Sensor Board/Enclosure Sensor Board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Enclosure Sensor Board design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

Similar boards

  • 2 layers70.1 × 43.2 mmIaq device, the printed circuit board in 3D

    Iaq device

    nkitanov/iaq_board

    IAQ Board is a DIY (Do-It-Yourself) device for measuring internal air quality

    19 parts396
  • 4 layers38.6 × 39.5 mmRuuvitag revb71, the printed circuit board in 3D

    Ruuvitag revb71

    ruuvi/ruuvitag_hw

    RuuviTag hardware projects

    64 parts115
  • 4 layers35.1 × 76.3 mmTiny4FSK, the printed circuit board in 3D

    Tiny4FSK

    New-England-Weather-Balloon-Society/Tiny4FSK

    Horus Binary v2 HAB Tracker

    90 parts96CERN-OHL-W-2.0
  • 2 layers29.8 × 33.7 mmPecanpico9, the printed circuit board in 3D

    Pecanpico9

    DL7AD/pecanpico9

    A lightweight APRS tracker for balloons

    116 parts68GPL-3.0
  • 2 layers136 × 100 mmClimateSprinklerController, the printed circuit board in 3D

    ClimateSprinklerController

    kbx81/ClimateSprinklerController

    ESP32-based climate and sprinkler controller for use with ESPHome

    194 parts56
  • 4 layers36.6 × 60.3 mmStratoSoar MK3.0, the printed circuit board in 3D

    StratoSoar MK3.0

    crnicholson/StratoSoar-MK3

    StratoSoar MK3, an autonomous glider meant for high-altitudes, accessible to everyone

    85 parts43
  • 2 layers23 × 50 mmPecanpico10, the printed circuit board in 3D

    Pecanpico10

    DL7AD/pecanpico10

    A lightweight APRS tracker and digipeater

    123 parts43
  • 2 layers97 × 77.5 mmESPlant, the printed circuit board in 3D

    ESPlant

    CCHS-Melbourne/ESPlant

    Environmental Sensor Plant - solar WiFi gardening/meteorological sensor using ESP8266

    77 parts37