Running multiple sensors

So currently, we have both the temperature and Bar 30 Depth sensor working. We are trying to connect them both to the same Arduino. We attempted to install both libraries and when I tried to compile the code it failed. Apparently, in Arduino you can’t reference more than one library and use the same function. It just spits out “conflicting declaration ‘MS5837 sensor.’”

TSYS01 sensor;

void loop() {
}

MS5837 sensor;

void loop() {
}

If I’m being dumb and there’s some library that works with both that would be great, thanks!

Hi,

Please share a minimum example that replicates your issue, the libraries should work without problem together.

Hey there,
I’m running into the same issue when trying to work with two sensors simultaneously, I’m interested in reading and logging both Bar30 and Celsius sensors and wondering if there is a simple way to do this. btw both sensors work well separately.
Thanks.

1 Like