I am relatively inexperienced with electronics so be gentle please.
I am trying to interface a VEML7700 photodiode sensor with a Firebeetle ESP32 using platform.io and arduino framework.
The connection and library usage was very straightforward so I got it up and running almost immediately.
The problem is when I tried to measure the power consumption. According to the datasheet, the VEML7700 should consume around 40-60 µA. When I measure the power consumption with it connected on the esp32 I get 540 µA. If I disable the sensor I get a 480 µA consumption, which means that it turns off, and there is a 480 µA draw somewhere.
The strangest thing happens when you disconnect the Vcc. The sensor still works and outputs data.
If I do the same thing with another sensor (BME280 barometric sensor) connected on its own, I get an equivalent consumption (around 500 µA)
If I connect both of them in series, I get double the power consumption (around 1 mA).
The same consumption happens even if I dont initialize the i2c bus. Or even if I have the SDA & SDL completely disconnected.
If you connect the sensors to a power supply directly with 3.3V and Vin, you get the consumption that they say on the datasheet (around 50 µA each), so I am off by an order of magnitude, even if I have the sensors disabled on the code.
I tried the same thing on an arduino NANO with a single sensor and I get 80 µA with the sensor enabled and 20 µA with the sensor disabled, so this appears to be working correctly.
Does anyone have any idea what the reason may be?
Thank you.
Edit: the same thing happens with the esp32 dev kit 4 which is the official dev kit