An electro-optical device includes a panel formed so that an
electro-optical material is held between a first substrate and a second
substrate, a lighting unit that irradiates light to a surface of the
first substrate or the second substrate of the panel, a light detecting
portion that detects an illuminance of ambient light, and a light control
portion that controls the lighting unit on the basis of result detected
by the light detecting portion. The light detecting portion is provided
on the first substrate or on the second substrate and includes a first
optical sensor, a second optical sensor, a first electrode, a second
electrode, and an electric potential applying portion. The first optical
sensor is irradiated with ambient light. The second optical sensor is
shielded against irradiation of ambient light. The electrodes are
configured to overlap the respective optical sensors through an
insulating layer.