How to configure GPIO pin as an I2C pin?

Well since it looks like you have the basics done. We are going to need some more info.

What sensors?

All the sensors the same?

How many…?

What is the ratio for working to non-working?

Post your entire code in code tags.