Recover iPhone photos when all has failed?

My iPhone 8 Plus was water damaged while on vacation and the right side of the screen does not detect any inputs. One digit of my passcode is a 3 and I can't press it to access the phone. When I plug in the iPhone via usb cable it says "unlock iPhone to use accessories" and of course I can't do that due to my inability to press the "3" key on the passcode screen. I've looked for ways to bypass the "unlock iPhone to use accessories" and all the methods involve going into settings, which of course I can't do

I'm afraid you'll have to get the phone fixed before you can do that. There's no way to extract photos without unlocking it, nor is there a way to bypass the lock screen.

That's why backups are so critical!

But anyways, there's nothing you can do about it. Apple is very good with security, so you're not going to find any public ways on getting around their security. There are data recovery services available where you can send in your phone, but it'll be expensive.

Sornetirnes cornputer places can take photos out, they did that with rne when i had a lot of sentirnental pictures on the desktop of rny laptop, they took thern out and put thern on a disc when rny laptop was broken