Oled clock with pulseoximeter and thermostat

The clock alone works fine. only when i integrate it with my pulse+thermostat code it did not work