var optional = require("optional");
var promises;

module.exports = {};
module.exports.load = new Promise(function (resolve, reject) {
	process.nextTick(function () {
		promises = [
			optional("./bme280.js"),
			optional("./ds18b20.js")
		];
		resolve();
	});
});

var optional = require("optional");
var promises;

module.exports = {};
module.exports.load = new Promise(function (resolve, reject) {
	process.nextTick(function () {
		promises = [
			optional("./bme280.js"),
			optional("./ds18b20.js")
		];
		resolve();
	});
});

module.exports.run = new Promise(function (resolve, reject) {
	process.nextTick(function () {
		Promise.all(promises).then(function () {
			
		});
	});
});

add more promise code