light receiving element, wherein light emitted from a side surface of the light emitting element enters into a light receiving surface which is not facing the bottom surface of the light emitting element and is a part of an upper surface of the light