need to read PORTD some how that i can see which bites are high and which low, im using a nano and need the reading all bits at once.
Read up on direct port manipulation.
my_var = PIND; //Read the PORTD
my_var = PIND; //Read the PORTD
It's better when the useless comments match the code.