What is LDR Sensor?
An LDR sensor (Light Dependent Resistor) is a device that is used to detect light.
It has a (variable) resistance that changes with the light intensity that falls upon it. This allows them to be used in light sensing circuits.
They are used in many consumer products to determine the intensity of light.
An LDR or light dependent resistor is also known as a photoresistor, photocell, photoconductor.
It is one type of resistor whose resistance varies depending on the amount of light falling on its surface. When the light falls on the resistor, the resistance changes. To sense the presence of light these resistors are often used.
These resistors have many functions and resistances.
For instance, when the LDR is in darkness, then it can be used to turn ON the light or to turn OFF the light when it is in the light.
Must See:

Specifications
Max power dissipation | 200mW |
Max voltage @ 0 lux | 200V |
Peak wavelength | 600nm |
Min. resistance @ 10lux | 1.8kΩ |
Max. resistance @ 10lux | 4.5kΩ |
Typ. resistance @ 100lux | 0.7kΩ |
Dark resistance after 1 sec | 0.03MΩ |
Dark resistance after 5 sec | 0.25MΩ |
Hardware Connections
The bigger one wire is +ve of LDR and the other is -ve.