A sensor includes a substrate that includes an upper substrate and a lower substrate, and an electrode that is provided on the lower substrate, and the upper substrate, the lower substrate, and the electrode are formed by an optically transparent member.