This is a simple web server running on an ESP32 that serves a web page with the current temperature and humidity from a DHT11 sensor. It also publishes the temperature and humidity to a MQTT broker.
It's an assignment for the unit "Internet of Things" from the Data Science and Digital Transformation post-graduation course at the Instituto Politécnico de Portalegre, Portugal.
There is a dedicated pdf file with the project explanation.
Do whatever you want with this code. It's public domain.