Built this as part of Ikea Byas fan mod:
https://imgur.com/gallery/rEQp0Dr
Houses the controller with a hole at the back for fan wires and one on the side for the temperature sensor.