Are you sure you have all pins connected to +5V configured as inputs?