Terrible mistake

digital_read() fixed, previouly tried to read from DDR instead of PIN