New yaml file

I have decided to start a new project for HA and now want to create a new yaml file.
I want to add 2 sensors , BH1750 and GYBMEP?? Are there templates available, it was about 3 years ago when I originally did this and now I don’t remember the wheres or how tos


There are sample code chunks on the ESPHOME site, is that what you need?

I strongly recommend taking a quick look through the ESPHome web site. It has loads of material …particularly for setting up a new configuration …