How are the inputs wired ?
Have you got pullup resistors in the circuit to ensure that the inputs are always kept at a known voltage and not floating at an unknown voltage ?
How are the inputs wired ?
Have you got pullup resistors in the circuit to ensure that the inputs are always kept at a known voltage and not floating at an unknown voltage ?