Obtaining data from multiple sensors through RAK13002 module

I am using a RAK19007 base and a RAK13002 io module. The two sensors I am using are Grove - Water Level Sensors by Seeed studio. Both sensors are connected to the RAK13002 module and I don’t know how to differentiate between the data obtained from both sensors.

The sample code provided for the water level sensor assumes only one water level sensor is being used. But since I need the sensors to work independently, I need to differentiate between them in the code. (Grove-Water-Level-Sensor/water-level-sensor-demo.ino at master · SeeedDocument/Grove-Water-Level-Sensor · GitHub) Also, I’m using Arduino IDE on Windows 11.

Welcome to the forum @lemobirb

The sensor is an I2C sensor, it seems it supports 2 I2C addresses:
image

I don’t know this sensor, but I guess you can set one sensor to address 0x78 and the other one to address 0x77.

That way you can read from each sensor separately.

Otherwise, please ask Seeed how to use two of their sensors on one I2C bus.