Hi, I am trying to have 2 sensors using i2c. I am using fairly long wires and thought that why it want working, but I measured the A4 pin and it was very close to 5v, but the A5 pin was 1.3 or so. When I tried an example code for one of the sensors by itself on another circuit it worked normally. I am not sure if my code dealing with multiple slave devices is wrong or what. if someone can please help it would be greatly appreciated.
I will include my code. Sorry if it is a bit messy. I marked the parts I believe are related to my problem with “HERE” on the far right side of each line related.
The sensors I am using are the mpu6050 accelerometer and the VL53l0x
Tasskat-Code-2.0.ino (4.47 KB)