i have been developing a temperature/humidity sensor for a specific enclosure. As the project evolved the hardware got more features, and i've been having some issues with my thermal management.
My first project was aligned with common PCB thermal management best practices, with a solid cooper plane on entire PCB, had some problem with the sensor heating ~1°C.
The second project was with a solid polygon on top half of the PCB, and the sensor on the bottom of the PCB, without a polygon. That was a nice solution, until a client installed the product on the ceiling, in a horizontal position. This caused a increase of 4°C on the sensor, as it had no air flow on it.
Now i'm reprojecting the PCB, and one thing i've been looking at is for components enclosures with the lowest thermal resistance, see an example of a LM317 thermal resistance:
On my first thought i would choose the PK enclosure, as it has the lower temperature increase per watt. But that could be the same mistake as my first project design (or not, i would like to understand that!), it could just dissipate it's heat better, but, after all, generate the same amount of heat inside the enclosure.
So, in this application, in an enclosure that does not have air flow, and all heat generated is "accumulated" is there any difference by choosing differents enclosures? Or the efficiency on dissipating electrical power on thermal is always the same?