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
8.9m questions
11.6m answers