pedalPusher68 / node-red-contrib-brads-i2c-nodes

A collection of node-red nodes for assorted i2c devices
MIT License
5 stars 7 forks source link

htu21d - add support for sensor detection/emission of low-battery #4

Open pedalPusher68 opened 7 years ago

pedalPusher68 commented 7 years ago

From data sheet p. 13:

User Register ... The “End of Battery” alert/status is activated when the battery power falls below 2.25V.

Bit 6: value = 0 when Vdd > 2.25V, = 1 when Vdd < 2.25V.

Add support for a string command input 'check_battery': add a 3rd output that echoes the values above based on the htu21d reported battery voltage.