An IP (Ingress Protection) rating is a two-digit code that indicates how well an electronic device or enclosure is protected against dust, water, and other foreign objects. The first digit (0-6) represents protection against solids, while the second digit (0-9) represents protection against liquids. Higher numbers indicate better protection.