I'm copying the relevant bits from someone with the same problem found here:
https://forums.androidcentral.com/samsung-galaxy-s5/479964-galaxy-s5-camera-doesnt-focus-not-blurry-photos.html
My camera can't focus on anything more than about 7" away. It used to work, but I noticed a short while...