This optical sensor device is provided with a substrate, a light-receiving element, a light-emitting element, a first transparent substrate, and a second transparent substrate. The substrate has a first opening and a second opening disposed spaced away from the first opening. The light-receiving element is disposed at the first opening. The light-emitting element is disposed at the second opening so as to be spaced away from the light-receiving element. The first transparent substrate is disposed on the top surface of the substrate and bonded to the substrate so as to block the first and second openings. The second transparent substrate is disposed on the top surface of the first transparent substrate.L'invention concerne un dispositif de capteur optique comprenant un substrat, un élément de réception de lumière, un élément électroluminescent, un premier substrat transparent et un second substrat transparent. Le substrat comprend une première ouverture et une seconde ouverture disposée de manière espacée de la première ouverture. L'élément de réception de lumière est disposé au niveau de la première ouverture. L'élément électroluminescent est disposé au niveau de la seconde ouverture de façon à être espacé de l'élément de réception de lumière. Le premier substrat transparent est disposé sur la surface supérieure du substrat et collé au substrat de façon à bloquer les première et seconde ouvertures. Le second substrat transparent est disposé sur la surface supérieure du premier substrat transparent.光学センサ装置は、基板と、受光素子と、発光素子と、第1透明基板と、第2透明基板とを備えている。基板は、第1開口部と、第1開口部と間を空けて位置した第2開口部とを有する。受光素子は、第1開口部に位置している。発光素子は、第2開口部に位置するとともに、受光素子と間を空けて位置している。第1透明基板は、基板の上面に位置し、第1開口部および第2開口部を塞いで基板と接合されている。第2透明基板は、第1透明基板の上面に位置している。