2025-06-22 2:34 PM
I'm trying to interface DHT22 with STM32F429i but the problem is that the sensor never responds with the high signal for 80 micro seconds after the intialization. Here you can find my code, so please tell me what could be wrong, I have been debuging this for the past week with no progress.
if ((HAL_GPIO_ReadPin (DHT22_PORT, DHT22_PIN))) Response = 1; // if the pin is high, response is ok
this if statement in line 126 never goes true. therefore the response is -1.