chances are you are clipping out well in advance of coming to a light. that's natural as you are just starting out. The more you ride, the closer to the light you will clip out and one day you'll stop thinking about clipping out and it will just happen. Then one day you'll forget completely and do something awkward and fall down. They you'll go back to thinking about the pedal and clipping out. Happens to almost everyone.