I am trying to take 8 bit binary input from dip switch 8 and output as bdc. But its not properly working for some reason. Some pins (which should give 0 volt) giving 1-3 volts not 0 or 5 volt. Dont know why this is happening. It should be either 0 or 5 volts. I have tried on 2 different arduino uno both same result. So i am not getting the exact result Can anyone tell me what i am doing wrong?
converter_final.ino (5.41 KB)