Scann a barre code

Hi,
how to read a barcode of an item to create it in a database
thank you