Im experiencing many of the issues on all the iPhone 7 and 7 plus, just today i had to replace the camera for a customer, and after installing the new one, the home button stop working. I called apple, them could not troubleshoot the problem, unfortunately and sadly all iPhone made after iPhone 6S are problematic, and yes i do agree with some one on this conversation, apple is preventing repair places to take the task on repair their products.
I have over 10 iPhone 7 with code (4013) send couple at apple for repair, there send it back, saying the items are beyond repair.
Apple is going to disappoint a lot of customers and especially hurting a lot of small business for doing the repair less than what apple offer.