Add resistor with LDR in arduino

Look at this thread.