Install Arduino IDE or PlatformIO. Install board support for ESP32 and NodeMCU (ESP8266). Install libraries needed for the sensors and modules used in the code.