Widgets on Virtuino keep setting randomly

I've only been working with this for a couple days, been able to mostly muddle my through, but this is making me crazy.

Equipment: Uno R3, H5 bluetooth Module, Virtuino (free version whatever's on Play store)

Phycisally, I'm using the Uno to control a DPDT relay, and monitoring the contacts.

In Virtuino, I'm using sliders to control the virtual pins that feed my variables and control the output. However, every few seconds the sliders adjust themselves. I added a lock button to try to keep things nailed down, but that button changes too, so it doesn't help much.

My code is attached...if anyone has a clue, I'm all ears. Thanks very much. :slight_smile:

BT_Controller_Virtuino.ino (6.86 KB)