Working bluetooth connection + measuring for limited period of time