Ohm's law applies to ohmic conductors, where the resistance is constant. Semiconductors and certain other materials are non-ohmic, meaning their resistance changes with applied voltage or other conditions.