I had a similar experience with my iPhone 7+. I had forgotten I'd turned it off. I picked it up, and wondered if the home button was broken, because it wasn't moving when I pressed it. Then I realized it was off, and had that OH YEAH, it's just a sensor with haptic feedback... pretty amazing!