The effect of oxygen adsorption on the conductivity of PbTe films is studied. Pn junctions based on PbTe films are photosensitive in the IR spectral region with a maximum photosensitivity of 𝜆𝑚𝑎𝑥 microns. The tunneling mechanism of current flow through the pn junction is shown.