It would be great if some could tell what exactly is the principle behind LDR.
Basically, LDR is an electronic component which is sensitive to light. As the intensity of light increases the electrons within LDR start getting more active. Therefore since there are more electrons the resistance decreases which the LDR had. Similarly if there is no light falling upon the LDR, The resistance will be quite high.