I was making a circuit with 1 LED and 1 transistor. pretty primarily i was trying to use the transistor as a normal switch. Here is the diagram below.
So, this is an NPN transistor and i connected the -ve part of the D1 (transistor) with the -ve part of the LED and the other -ve leg of D1 to ground. I connected the +ve part of D1 with the positive end of 9V dc power supply. The LED should light up and if I disconnect the wire connecting the +ve part of D1 , the LED should turn off. But the problem that I am facing is that the LED isn't lighting up when I connect all the points and follow the schematic.
Also another problem that I am facing is that when I connect a wire with the +ve leg of D1 and don't connect the other end of the wire with the battery and just hold the wire by my fingers, the LED turns on but emits very little light. Is there any mistake in my schematic?