Wiegand Data aFormat Reader and Arduino

jlukose6:
It worked when I shared ground, can someone explain why you have to do this

LOW and HIGH signals are voltages (below 30% of Vcc for LOW, above 60% of Vcc for HIGH) referenced to 'ground'. If the two circuits don't share a 'ground' then the signals have no fixed reference and may read randomly.