It could be due to a loose home button cable, you may need to reseat the cable properly. To do that, you need some tools to remove glass digitizer, I believe iFixit has posted a guide for this.
open