Using LDR sensor Module with Arduino

For Light intensity detected,light brightness sensors,Smart car module
Using the sensitive type photosensitive resistance sensor
Waveform of the comparator output signal is good,strong driving ability
With adjustable potentiometer can adjust and detect the brightness of the light
Come with bolt holes for easy installation

Working voltage 3.3V-5V
the output format: Digital switching output (0 and 1)
Size:32 x 13 x 7mm(L x W x H)

Arduino Sketch

const int ldr_pin = 7;
const int led_pin = 13;
void setup() {
  // put your setup code here, to run once:

void loop() {
  // put your main code here, to run repeatedly:
   if( digitalRead( ldr_pin ) == 1){
      digitalWrite( led_pin,HIGH);
      digitalWrite( led_pin , LOW);
   Serial.println( digitalRead( ldr_pin ));