FIG. 11B is an example of a cross sectional view of an optical sensor, which is formed from a light-receiving portion 132, a first electrode terminal 114 contacting with the light-receiving portion 132, a second electrode 113, a second electrode terminal 115 connected to the second electrode, and connection terminals 103 a and 103 b connected to the electrode terminals 114 and 115.