ps2 barcode scanner using instantly

If you have written the code that reads a barcode when a button is pressed but it does not work please post it here with a description of what it does. In your skeleton code explaining what you want to do we do not know where the value of number comes from.