An improved method for detecting the transition of a sample to the superconducting state at high pressure in a chamber with diamond anvils is proposed. The background signal and the signal determined by the transition of a sample to the superconducting state are separated using the method of a periodic destruction of the superconducting state, achieved by heating the sample with low-frequency modulated laser radiation. This method allows magnetic materials to be used in the manufacture of parts for the high-pressure chamber. The heat release in the cryostat, associated with the heating of the modulating inductance coil and the absorption of laser radiation, is no higher than a few milliwatts, thereby allowing the extension of the temperature range accessible to modulation methods for detecting superconductivity. Examples of applying this technique to the detection of superconducting transitions in Pb, V, and YBa2Cu3O7 − x samples are presented.