What kind of labels do you use? Often the stored ID is not related to any ID printed on the labels. The printed may be some kind of product number while the internal ID should be unique and must be different from tag to tag.
According to the linked blog the raw output data is a series of hexidecimal numbers that when converted to decimal are the ASCII character values for the ID label you are expecting.
You should be able to get the card serial number exactly but first you need to know a couple of things. 1) the output format of the reader. Eg. My reader outputs 2 hex bytes of header (so you know the data came from the reader) 1 hex byte command (like this is the csn) 1 hex byte length ( so you know the length of the coming badge number) and a 1 byte for a checksum. So what you find is a bit of other stuff padding around the actual badge number. Which is why when you convert it to decimal without stripping this other stuff off you get the wrong number.
also some cards return their CSN in big endian ( most significant byte first) eg. AABBCCDD = AABBCCDD but some use little endian ( least significant byte first) eg. AABBCCDD = DDCCBBAA. If your card is little endian you will have to swap the bytes around before converting it to decimal.