Problem working with I2C DS3231 RTC and Pressure Sensor (MS5837)

I am trying to use MS5837 Pressure Sensor and DS3231 RTC together on same Arduino Nano.

However, they don't work if I connect them on same I2C ports (A4 and A5). They do work separately.

Any issues? I am using RTClib and MS5837 libraries.

Post the following codes:
1. Working sketch only for pressure sensor
2. Working sketch only for DS3231
3. Combined sketch for both MS5837 and DS3231

I am trying to use MS5837 Pressure Sensor and DS3231 RTC together on same Arduino Nano.

Post a wiring diagram of that setup! The MS5837 is a 3.3V device, the DS3231 runs on 5V as the Nano. Depending on the breakout boards (post links to the schematics of them if you use it)/PCB you may have problems with wrong pull-ups and or power supply.