Print port number

Hi all,

Forgive me for being a noob. Yet, since I will be adding quite a few sensors to the grovepi, quite a few being identical, I would surely need to print the port number along with the values gathered by the sensor. Would that be even possible?

Cheers,

D