Select the top loop of vertices on the bottom section and the bottom loop on the. Upper section,
Press F3 and type bridge edge loops and play with the offset.
Read How to bend a tube with consistent thickness?
Or enable the Mesh extra objects add-on.
Then you can create the object directly by adding add mechanical piipe joints and choose the shape kind. Of pipes you need