Exploring Pi Pico W Integration with Home Assistant

Hi everyone, I’m a student diving into the world of Home Assistant and DIY smart home projects. I recently decided to create a motion monitoring system using a Pi Pico W and a PIR sensor. While I managed to connect the Pi Pico W to ESPhome following some YouTube tutorials, I’m now stuck on how to get the Python code running within Home Assistant. I have the MicroPython code written in Thonny, but I’m not sure how to transition it to work seamlessly with Home Assistant. Does anyone have experience with this or know of any resources that could help me bridge this gap? I’m really excited about completing this project and would appreciate any guidance or suggestions. Thanks in advance for your help!