Home        Store        Docs        Blog

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.