1. A semiconductor device formed by cutting a first substrate and a second substrate bonded together by a spacer, wherein: the spacer is disposed at an end of the first substrate after cutting; the second substrate is a semiconductor wafer formed with a light reception element or elements; and the first substrate has an optical element or an optical element set for converging light on the light reception element or elements.