I just want to share my book here with you: https://www.amazon.com/Developing-IoT-Projects-ESP32-inexpensive-ebook/dp/B093CCWGDP/
In this book, I tried to explain how to develop production-grade ESP32 projects with PlatformIO. It has 3 main sections in it: sensors/actuators, local network comm, cloud comm. Each section contains a complete project at the end. The book is all hands-on, which helps the reader to develop real-world projects. The chapters start with a short introduction/background info to the subject and then gives practical examples, all developed with PlatformIO.
For more info, you can check out the TOC at the link I provided above. I hope you enjoy it. Looking forward to your feedback/comments.