Wearable sensor technology to measure physical activity