Serial reference. using millis(). analog read() println()
blink without delay arduino ldr
You are on your own for the last bit.