Powering 52 LEDS and Sensors

@CrossRoads What if I power my 52 leds from another power source and use a transistor like this:

would this be more ideal? Thanks for you help.