this question is so general.. everyone needs to do this..So i´m very sure you can find the informatin in the datasheet.
Usually you have to select the address.
There will be descriptins, documents and code examples by the manufacturer and other sources in the internet.
If you don´t find it in the datasheet, then look at the manufacturers web pages.