A biosensor (100) includes: light emitting elements (121, 122) and a light receiving element (123) disposed on a principal surface (160a) of a wiring board (160) a light shielding portion (173) disposed between a light-emitting-element sealing portion (171) and a light-receiving-element sealing portion (172) a base medium (150) having light transmitting properties, disposed in parallel with the wiring board (160) with the light shielding portion (173) therebetween an adhesion layer (180) having light transmitting properties, configured to bond the base medium (150) with the light-emitting-element sealing portion (171), the light-receiving-element sealing portion (172), and the light shielding portion (173) and a first electrocardiograph electrode (130) attached to a principal surface (150a) of the base medium (150). The refractive index of the base medium (150) is set to be higher than that of the adhesion layer (180), and a surface (130a) of the first electrocardiograph electrode (130) which is adjacent to the base medium (150) is roughened so that stray light passing through the base medium (150) will be scattered.