User manual

www.sainsmart.com
Copyright © 2013 SainSmart All Rights Reserved
Example code:
int photocellPin = 2; //define photocellsh=2, read the value of voltage.
int ledPin = 12; //define ledPin12 is the output port of leds level.
int val = 0; //define original of val.
void setup() {
pinMode(ledPin, OUTPUT); //set ledPin output
}
void loop() {
val = analogRead(photocellPin); //get the value from sensor
if(val<=512){
//512=2.5V, if want the sensor be more sensitive, increase the number, or lese low the number.