Combine two Arduino projects into one PCB with the Arduino codes combined.

You make sure that the components of the project occupy different pins. Or in the case of I2C devices have different addresses. Or in the case of SPI devices have separate chip enable lines.

If you want more than generic advice be more specific about what these projects are and post the schematic of both.