Automated diagnosis of damages in ceilings by a portable device