I have two pins as inputs to detect a HIGH but I was having issues with the digital pins flipping back and forth between High and Low without any actual input. After doing some research I learnt that I needed a Pull down resistor connected to ground. So I connected a 10k resistor to each input pin I'm using to the ground.
I got it working as intended apart from now the two output pins that I have going to two LEDs have low voltage and are very dim. I got around this by putting in a transistor with a stronger voltage and using the low from the output pins as the switch.
Is there a better way to do this? Prior to the pull down resistors being installed on the inputs the output pins were very high.
Any help would be appreciated.