I am working on code that reads from a keycard scanner. I am reading from 2 data pins and storing their value in an array once the pulse drops. The time between pulses is 1 mS. When i print out my array to the serial monitor I receive: �������������64888. I don’t want it to print these garbage characters because it wont let me transfeer this data over UART to my Raspberry Pi 5. Here is my code:
enter image description here
enter image description here
I swtiched the Baud rates and delays and still can’t get it to work.