I am not too savvy with electronics so I apologize in advance for any major ignorance on my part. I am trying to use a transistor (listed in the title) as a digital switch for my Raspberry Pi 4 to control. Here is the circuit diagram.
Here is a picture of how I hooked up the circuit:
I inserted an LED in the circuit (the 5mm one that comes with an Arduino board) and it is always on. I am using an adapter that I found laying around as the power source. It reads 12V, 1.5A on the back. I would like to only have the LED turn on when the base terminal is given the proper voltage. The LED should be off when the Raspberry Pi is not providing any power to the circuit. Am I not understanding something? Should I be using different resistors? Thank you for any help!