Firstly, as per the welcome topic, you need to properly format any posted code in this forum, for proper viewability…
Your title is a bit misleading as you are not really combining widgets… just the usual “use sensor to get data and display to show data” routine.
As for your question… yes, it can be done… probably similar to how your code sorta looks (I have not looked at it that close in it’s unformatted format… I find reading the flow of others code a challenge when I can see it correctly, let alone when I can’t …thats my story and I am sticking too it )
So anyhow… What are your results and what is the issue?