Is that a 5V-ready laser module?
What's the 5V for the circuit, the Arduino "5V"?
BC547, looking at its datasheet, pinout is "unusual" - looking at the face with the leads pointing down it's C-B-E (not E-B-C). Could that be the problem?
I suppose RB = 220? to 1K ought to do it.