interfacing of ldr sensor