Existing Arduino project with cpp and h files to Esphome

I have working code for SDP610 air pressure difference sensor in traditional Arduino environment. It has file.ino, file.h and file.cpp. I would like to move it to Esphome so I could manage and update the code remotely if needed. But how it should be imported to Esphome with those extra files? Is there any tutorial for that?

You can write a custom sensor component for it: Custom Sensor Component — ESPHome

1 Like