Sazer is right.. Pullup resisters will help....

Or, you can use internal pull up resisters. in the chip.

Dwayne