Added description in temp-calc for setwarnings

This commit is contained in:
K 2024-11-06 11:53:41 +05:30
parent 34360e2c34
commit d5bc702107
Signed by: notkshitij
GPG Key ID: C5B8BC7530F8F43F

View File

@ -5,7 +5,7 @@ import dht11
import time
# initialize GPIO
GPIO.setwarnings(False)
GPIO.setwarnings(False) # Set True if you are having trouble connecting the DHT11 sensor to Raspberry Pi. Doing so will show warnings on screen.
GPIO.setmode(GPIO.BCM)
GPIO.cleanup()