I used a plastic project box and drilled vent holes for mine. It has been working fine. The only problem you might have is with connectors that are designed for the thickness of metal and not lumber. You could always insert a metal plate for that.
(My pid controller had a mount designed for thinner material than my plastic box. I built an alternate system that seems to be working well.)