A port of [@jjalling's Si7005-B-GM Arduino library]( to JS.

npm install climate-s17005
2 downloads in the last week
10 downloads in the last month


A port of @jjalling's Si7005-B-GM Arduino library to JS.

Uses the Si7005 chip as the Temp/Humid sensor.


var climate = require('climate-s17005').connect(hardwareapi);
climate.on('connected', function () {
  climate.readTemperature('f', function (err, temp) {
    console.log('Degrees:', temp.toFixed(4) + 'F');

Method calls

.connect(interface[, csn])

Takes in the port bank that the module is connected to. Returns the Temp/Humid object.

.readTemperature([format,] callback(err, temp))

Returns the temperature in degrees Celcius or Fahrenheit.

.readHumidity(callback(err, humidity))

Returns the humidity level.

.setHeater(bool[, callback(err)])

Sets the HEAT config register. According to section 5.1.4 of the datasheet

Turning on the heater will reduce the tendency of the humidity sensor to accumulate an offset due to “memory” of sustained high humidity conditions. When the heater is enabled, the reading of the on-chip temperature sensor will be affected (increased).

.setFastMeasure(bool[, callback(err)])

Sets the FAST config register. According to section 5.1.3 of the datasheet

Fast mode reduces the total power consumed during a conversion or the average power consumed by the Si7005 when making periodic conversions. It also reduces the resolution of the measurements.

Normal Fast
converstion time 35ms 18ms
temp resolution 14 bit 13 bit
humidity resolution 12 bit 11 bit


npm loves you