Converting voltage to analog value with resistor

An LDR definitely needs a second 'fixed' resistor, but that can be the internal pull up resistor of the pin.
Leo..