Simple Circuit Ideas Needed

What value did you use for the capacitor? I tried with a 2200uf and it seems to be on only when the IR sensor is detecting something after that it goes off. I used 2n2222A transistors. :-/