HP are notoriously flaky when scanning.
Are you trying to scan wirelessly?
I no longer use HP (because of scanning difficulties!) but always found, on the few occasions when it worked, that an ethernet (not usb) connection was needed.
Best phone camera 2017
Stunning new film posters by Hattie Stewart, Joe Cruz & more
iPad Pro 10.5in (2017) review
28 astuces pour profiter au mieux de votre iPhone