<p>A device having at least one light-receiving part (11), a base plate (12A) on which the light-receiving part (11) is mounted, a transparent base plate (13A) which is arranged facing the base plate (12A) and the light-receiving part (11), and a frame member (14A) which is arranged in such a way as to enclose the light-receiving part (11) between the base plate (12A) and the transparent base plate (13A). The frame member (14A) comprises a cured resin composition. The resin composition includes alkali-soluble resin, photo-polymerizable resin and not more than 9 wt% inorganic filler. The photo-polymerizable resin includes acrylic poly-functional monomer. The frame member (14A) has a moisture permeability of at least 12 [g/m2·24h] and an elastic modulus at 80°C of at least 100 Pa.</p>