finding a bug

This commit is contained in:
Daniel Ledda
2020-10-31 16:20:46 +01:00
parent 0bb957fe2d
commit af9fe5152c

View File

@@ -56,6 +56,7 @@ func readDataFromDHT(pin *gpio.Pin) ([5]byte, error) {
pin.Low()
pin.Output()
time.Sleep(1100 * time.Microsecond)
pin.PullUp()
pin.Input()
time.Sleep(30 * time.Microsecond)
// Wait for high low signal