linear light sesnor help

Hi

Why dont u just use
1.
a photo diode, that u place at a point that should have a constant brightness,
and
2.
a comparator (either digital or analog), that tells the arduino if u need more or less artificial light?

i dont c

  1. why u need a linear sensor, or
  2. why u need to measure the sun/street light input...

Bye