For this, you need to download and install the app HP scan and capture. Follow the steps for HP printer scan to computer. Go to the settings and click on the option of select device. Click on next and chose the HP printer you are using. Then, click on document scan to make any changes. The document must be placed on the scanner glass and when you click ok the printer will start to scan. Thereafter, click on the close button.
https://connectmyprinter.com/how-to-scan-from-hp-printer-to-computer/