Given you have Home Assistant installed and have previously used ESPHome. And attached wires.
Otherwise, you may be up to a journey that takes many hours/days. That's the difference experience makes :)
My steps were:
1. Install docker
2. Install/run HA through docker
3. Install/run ESPHome through docker (there's a config wizard)
4. Edit the ESPHome .yaml from (3) to my preferences
5. Connect 4 wires from the ESP32 to the air quality sensor
6. Plug ESP32 USB to RPi
7. Run docker esphome on the above yaml. This compiles, flashes, and boots your ESP32, auto-connecting to your network
8. Add the ESP air quality sensor to HA through the web GUI
+ setting up for external access, letsencrypt and tying that everything within docker-compose. I didn't manage to do it in 20minutes, but more like full working day maybe?
Anyway, HA is recommended. Haven't tried ESPHome, but Tasmota is an alternative that also does the job, if you someone ever wants to research the options.
Building enclosures for these projects used to be an annoyance, but everyone provides CAD models of their stuff now, so you just kind of lay it out in your CAD program, extrude a box around it, and print it out.
Never been a better time than now to be building sensors and that sort of thing. (Even with the STM32 shortage!)
As for the Raspberry Pi -- my rule is to treat embedded systems like hardware. Download a Linux image with the software you want on it, copy it to an SD card, plug that in, and go. I use this model for Octopi and while I might have changed the password and uploaded a profile for my printer file, that's it. If the RPI blows itself up, $35 and 5 minute fix. What version of systemd is running? Don't care. How close is the clock to Coordinated Universal Time? Don't care. It's an appliance and the time on the front is blinking :P
(I spent most of my free time this week unbreaking my Beaglebone that I ostensibly don't treat that way -- I log in and fuck with shit. Though when debugging failed I just blew everything away and copied over what I saved in the project's Git repo. It was enough to be back up and running with no loss of functionality. I guess the key is: don't let it run away from you -- it can be an endless time and energy sink.)
Attached over I2C to an ESP32 running ESPHome: https://esphome.io/#air-quality Which in turn reports to a raspberry pi running Home Assistant: https://www.home-assistant.io/installation/ Took about 20 mins to set everything up.