Programming the ESP32
Programming the ESP32 involves implementing the logic required to control each sensor and actuator in the smart home system.
The ESP32 dev board is used to read data from sensors and handle communication with the IoT platform via MQTT.
Each device will have its own set of logic—whether it’s reading sensor data, toggling device states, or responding to commands from IoT Studio—ensuring the system functions smoothly both locally and remotely.
This project has been coded following the Arduino tutorials available here. Access the Altair IoT Studio Demos repository to download all the files needed.
credentials.h
file with your
values for space Id , Thing UID, your network credentials, and the UID of your RFID
card.If you prefer to use Python, access the sample tutorials here.