I have been researching related questions to this one for a while but decided I needed to ask this myself, as no one seems to be having quite the same issue and I am not knowledgeable enough yet to extrapolate an answer based on related discussions on this (and other) forums.
I am trying to use my RPi 3B to receive data from a I2C device (BME280 mudule) and a UART device (MH-Z19B). Due to logistical constraints, these two devices must be located in the same spot, approximately 25 ft away from the Pi. I have purchased a 50-foot (15.2 m) cat6 ethernet cable and a pair of surface mount boxes (see links below) for the purpose of connecting the two devices to the Pi.
What I've read so far seems to indicate that both I2C and UART struggle to send data reliably over a distance of more than a few inches, and that if I want to send them over this 50-foot cable, I will need a P82B715 bus extender for I2C and a RS232 (or RS485) for UART.
SO my question is, what is the best way for me to wire both of these devices, as well as the necessary drivers/extenders, through my cat6 cable? I am aware that one must be careful which signals are assigned to twisted pairs, so as to avoid crosstalk.
Equipment I've purchased:
-BME280 module: https://www.amazon.com/gp/product/B0118XCKTG/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1
-MH-Z19B module: https://www.amazon.com/gp/product/B083YXFSDM/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1
-Cat6 ethernet cable: https://www.amazon.com/gp/product/B0134QJH4G/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1
-Surface mount boxes (x2): https://www.amazon.com/gp/product/B005E2Y9WY/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1