Climate sensor with ESP32
There are many projects with indoor climate sensors. There are also more and more boards that come with such sensors already fitted. However, these do not measure temperature and humidity correctly, because the heat given off by the board is not taken into account. Sensor and board should therefore always be physically separated. This led me to the following project: it places the sensor (a BME280 for temperature, humidity and pressure) in a small picture frame, while the actual microcontroller (an ESP32-S2 board) sits behind it, connected by a cable and at a sufficient distance.
The project uses the MQTT protocol to exchange data. This allows me to receive the climate data both in Home Assistant and with my own MQTT server (mosquitto) on a Raspberry Pi Zero W, which in turn forwards the data to an iPhone app I created myself.
You can find the Arduino code at the following link: Climate sensor code.

