I try to make a LED light up with the code 
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(16, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) GPIO.setup(18, GPIO.OUT) while (var==1): GPIO.output(18,GPIO.LOW) GPIO.cleanup() as illustrated in the figure, the pin 18 serves to light up a LED or switch it Down but when I try with sudo python3 this script I see that the LED is lighten just a bit. Only if I connect my transistor base to the ground, I see that the LED is off completely I conclude that pin 18 is between HIGH and LOW, ont completely LOW... why?
