Patent ID: 7880178

Claim:
A semiconductor device comprising a first element and a second element adhered to each other, wherein at least one of the first and second elements has a pressure relaxation layer on the side facing the other of the first and second elements, and the pressure relaxation layer includes a semiconductor part having a projection/recess part including a projection projected toward the other element, and a resin part filled in a recess in the projection/recess part, further comprising a metal layer provided between the first and second elements, wherein the projection in the projection/recess part has conductivity and is electrically connected to the metal layer, wherein the first element is a light emitting element having a light emission area, wherein the metal layer has an aperture at least in a part of an area facing the light emission area, wherein the recess in the projection/recess part is provided at least in an area facing the aperture, and wherein the second element is a light detecting element having at least a light absorption layer in an area facing the aperture.