How to place a 3D model in the same posion in a photo for rendering?
This video mentions a software that will probably help you with aligning things up with the scene background, he starts mentioning it at about 1:38. Also, are you using hdri images and putting them as the world background?

youtube.com/watch?v=nb6rSMAooDs

Hope this helps!