diff --git a/lib/controllers.js b/lib/controllers.js index a875fc0..0dfb98e 100644 --- a/lib/controllers.js +++ b/lib/controllers.js @@ -20,6 +20,7 @@ var console = require('console'); var ColorSensor = require('color-sensor-js/example'); var GeolocationSensor = require('./geolocation'); +var HumiditySensor = require('./humidity'); var AmbientLightSensor = require('./ambientlight'); var TemperatureSensor = require('./temperature'); @@ -50,6 +51,14 @@ module.exports.Geolocation = function(options) { return (new GeolocationSensor(options)); } +module.exports.Humidity = function(options) { + if (!options) { + options = { controller: 'htu21d' }; + } + + return (new HumiditySensor(options)); +} + module.exports.Temperature = function(options) { if (!options) { options = { controller: 'bmp085' };