Code only works correctly the first time?

Also, yes, I first wrote code that only ran the audio and lighting effects when the PIR sensor was tripped. That worked flawlessly. I started to experience problems when I attempted to add in the photosensor to the mix.

Basically, I only want this decoration to run at night when someone trips the PIR sensor.