I need some help with ESPHome, uart port and a Windsonic anemonemeter

You need to post your code properly. See here (point 11 but read the whole thing):