Different types of light detectors are LDRs or Light Dependent Resistors Photo . First you need to connect the LDR to the analog input pin 0 on the Arduino. If intensity of light falling on LDR is high LDR will have low resistance
9.5m questions
12.2m answers