"The semiconductor device according to claim 1, wherein the semiconductor chip is a light emitting element or a light receiving element, the upper surface of the resin package being provided with a convex lens portion at a location" . . . .