To set up Wi-Fi on your HP DeskJet 4152e printer, you can use one of the following main methods:

1. **Wi-Fi Protected Setup (WPS):**
– Turn on the printer.
– Press and hold the **Wireless** button on the printer until the wireless light blinks.
– Within 2 minutes, press the WPS button on your wireless router.
– Wait for the wireless light on the printer to stop blinking and become solid, indicating connection[1].

2. **Reset Network and Use HP Smart App:**
– Press and hold the **Wireless** and **Cancel** buttons on the printer for 3 seconds to restore Wi-Fi setup mode (the Power and Wireless lights will flash)[3][4].
– On your Windows 10 PC, smartphone, or tablet, download and open the **HP Smart app**.
– In the app, add the printer by clicking the plus button and follow the on-screen instructions to connect to your Wi-Fi network[3][4].

3. **Using Printer Embedded Web Server (EWS):**
– Connect the printer to your computer temporarily via USB.
– Find the printer’s IP address by printing a network configuration page.
– Open a web browser, enter the IP address, and log into the EWS (default credentials usually admin/admin).
– Go to the network settings section and enter your new Wi-Fi SSID and password.
– Save the settings, and disconnect the USB cable once the printer connects to Wi-Fi[1].

4. **Wi-Fi Direct Setup (for mobile devices):**
– Press the **Wireless** button on the printer to activate Wi-Fi Direct (blue light).
– Print the printer info page by pressing the **Information** button; the Wi-Fi Direct name and password will be shown.
– On your smartphone or tablet, connect to the printer’s Wi-Fi Direct network using the password.
– Open the HP Smart app and add the printer[2].

These are the most common and officially supported methods to connect your HP DeskJet 4152e printer to Wi-Fi, depending on your available devices and network equipment[1][2][3][4].