Deductions & credits

Ok, I saw conflicting opinions online. Some said if attached and insulated it was but if not attached to home it was not.