From Arduino IDE to PlamformIo - nodemcu + DHT 22 temperature sensor MQTT

Looking to convert code from ArduinoIDE to PlatformIo
I have nodemcu (ESP8266) with DHT22 temperature sensors, sending data to my MQTT broker
loads of examples around for ArduinoIDE, can’t find any for platformio
Has anyone done this please?

Wut? You can use Arduino skeches (.ino) just fine in PlatformIO when you name them as such (src/main.ino for example). To convert to the native .cpp format you need to follow this. And of course, in both cases you need to tell PlatformIO the libraries that you’re using via lib_deps.

OK - thanks for the info, will have a go