This program will use read from and write to the scanner. It also can calculate the speed of an object by using the amount of time between two scans. To see more details see the man pages.
For more information on barcodes see www.howstuffworks.com.