How to use LDR sensor

This is simple project , LED green when it light and red when it turn dark.

 

Hardware Required :

-Arduino Uno or Mega

-Breadboard

-RED & GREEN LED

-Wire

-LDR Sensor

-220 Ohm Resistor

-10K Ohm Resistor