For I2C, you need to the use the correct pins for I2c for the model of Arduino board and chip that you have. A4 and A5 is for I2c on a Uno. For a nano, I don't know. Look it up.
For I2C, you need to the use the correct pins for I2c for the model of Arduino board and chip that you have. A4 and A5 is for I2c on a Uno. For a nano, I don't know. Look it up.