Housings with compartments containing a PCB