These modules have a weak internal pullup, so simply connecting the outputs of both modules to a single pic pin should work.

Regards,

Anand