ATMega32 digitalRead and write trouble

Show us the code, how the pins are declared, pinMode usage, etc..