Are you talking about a sensor’s index number? If so, you can find instructions for how to retrieve that here: Sensor Indexes and Read Keys
If that’s also not what you’re talking about, please clarify what you are trying to do, and I’ll help you out.