Hi! I am relatively new to Sparkfun and Arduino. I am working on a project using an ESP32 and two Sparkfun VL53L5CX ToF sensors. I am using the example provided in the Arduino library (example9_twosensors). Everything is wired and powered correctly, and the code initially works. However when I reupload the code/reset the ESP32, the setup no longer works, and I am unable to .begin() the sensor. It feels like the reset function is not working, and the only solution I have is to unplug the sensors from VCC and reupload the code. Are there any known solutions to this? Thank you in advance for the help!
If using qwiic/i2c: you’ll likely just need to disable one set of i2c pull up resistors Qwiic ToF Imager - VL53L5CX Hookup Guide - SparkFun Learn( jumpers section)
You also might need to add a debounce to your code if the above doesn’t fix it
My suggestion is that you test your ESP32 with another simple code. Like blinking etc. See if the problem occurs when you try to upload your particular code for VL53L5CX, or it happens with all codes.