Transistor simulation not working properly in Proteus
I fixed it. First I switched the &quot;model type&quot; of the Led from &quot;digital&quot; to &quot;analog&quot;. Then I changed the transistor to a 2N2222. And I also fixed a design problem by adding a resistor that goes from the base to ground, to avoid any charge in the environment from turning on the transistor.