I am writing a DHT11 interface for ATmega32 but for some reason it keeps reading logic high after receiving the response at a certain while loop which I commented ne