Single Pulse Help.

I just added the "digitalRead (ldr)" to the "void loop" but it does no work.

Yes, but you have to check what the return value is.
You did that, right?