We allow a 6 inch gap between the roof and module. This is to allow the panels to cool and ventilate on a sunny day.