Arduino and 4511 IC

I am using 2 4511 IC's to drive 2-7 segment displays. The data inputs are connected to pins 1-4 and the latches are connected to pins 5 and 6. The displays are showing the wrong number. For example the analog value is 88 but the display shows 99, the arduino is writing a 1 to the data a input no matter what the number is. This only happens when I am reading a number from some kind of input not when I program a specific number in the sketch. Thanks, any help would be greatly appreciated.

Pin 1 is the serial port tx pin. If you are using serial comms, it's best to avoid using pins 0 and 1 for anything else.

Thank you !!!

That took care of it.