Error with KX132 Accelerometer

Hello,

I’m trying to connect a SparkFun KX132 accelerometer to an Arduino Portenta H7. After uploading the sketch, it prints “Could not communicate with the the KX13X. Freezing.” I’m not sure why that is. All the connections are okay and it was working just fine before.

Any help would be greatly appreciated. Thanks.

How is it wired up? Share a photo or two

Ensure that only 1 set of pull up resistors are active on the i2c bus if using i2c

One of the wires must have been loose or disconnected. I re-soldered a wire and it’s working now. Thank you for your response.