The pyroelectric effect refers to the ability of certain materials to generate a temporary voltage when they are heated or cooled. This occurs due to changes in the polarization of the material. When the temperature of a pyroelectric material changes, the distribution of electric charges within the material also changes, leading to a voltage across its surface.