code: function SensorCheck(sensorRootObj) {
  
  	var promise = new Promise(function(resolve, reject) {
  
  		var runCheck = function (tries) {
  
  			setTimeout(function() {
  
  				if (sensorRootObj && sensorRootObj.data) {
  
  					resolve();
  
  				} else if (tries >= 20) {
  
  					reject();
  
  				} else {
  
  					runCheck(++tries);
  
  				}
  
  			}, 50);
  
  		};
  
  		runCheck(0);
  
  	});
  
  	return promise;
  
  }
docs: /// Promise-based Sensor Data checker //////