Arduino sketch for a bluetooth wearable device