it consumes 48mA forever
the command powerOff does not reduce current.
//-------------------------------------------------------------------------------------
// get some data from the sensor
*include “Wire.h”
*include “MutichannelGasSensor.h”
*define SENSOR_ADDR 0X04 // default to 0x04
void setup()
{
Serial.begin(115200);
gas.begin(SENSOR_ADDR);
gas.powerOn();
}
void loop()
{
delay(5000);
float c;
c = gas.measure_NH3();
Serial.print("NH3 is “);
if(c>=0) Serial.print(c);
c = gas.measure_CO();
Serial.print(” CO is “);
if(c>=0) Serial.print(c);
c = gas.measure_NO2();
Serial.print(” NO2 is ");
if(c>=0) Serial.println(c);
}
//-------------------------------------------------------------------------------
Sketch uses 8246 bytes (26%) of program storage space. Maximum is 30720 bytes.