project(dht11&relay)

Hi guys,
i have a project for my university, i put a dht11 sensor for humidity and temperature measurments and a relay the purpose of this project is dht11 sensor sends the results of the measurments to mqtt broker server and after broker server sends the results to phone.
with the relay i want to switch on/off one electrical outlet
i put the relay process at the void callback function
and the dht11 at the void loop function bacause i want the sensor sending data to phone for 30 minutes
and i control the relay anytime i want.
here is my code

home(relay&dht11).zip (1.55 KB)

here is my code

The code does something that is a secret.
You expect the code to do something that is also a secret.

How what the code actually does differs from what you want it to do is also top secret.

How do you really expect us to help?