programming ble for nano with distance sensor

Hello,

I am brand new to Arduino working on my first project. I'm working on my first Arduino nano 33 ble and the example codes work perfectly, I can take measurements over USB, or I can install a battery level check example and that works over BLE.

My challenge is that I can't figure out how to combine the two programs, I just want to read distance measurements over BLE like the battery level.

I hesitate to ask such a simple question but I am really stuck and was hoping that the forum could help?

Thanks for your time and help!

ps. I am using VL530X laser time of flight sensor and I am using LightBlue with an iPhone to connect

Merging two programs is a common question here.
Forgetting to post them is a common mistake.

sorry about that :confused:

the two programs are from the examples:

Single for VL530X

and

BatteryMonitor

Hi callmeishmael,
Could you poist the ino files? It would make it easier for us to give assistance.