Address switching


I want switch the adress of the sensor, when it’s connected to VCC and GND, is there any option to detect the adress based on the connection and trigger the measurement for perticular selected connection, on I2C protocol… device has the two adress ( 0x40 for GND ) and
(0x41)- for VCC

Any suggestion would be appreciated

Thanks in advance…

have a look at the I2C scanner