A thermoelastic response that arises in a two-layered wafer under its heating by periodically modulated light beam has been studied theoretically. For the case of piezoelectric detection of the signal an analytical expression for the output voltage of the transducer has been obtained which allows to calculate the amplitude and phase characteristics versus modulation frequency. It is shown that these characteristics vary strongly depending on thermal and elastic properties of both layers.