From 2273a5f46378b67e2ef4e5705fe468a14bf381d1 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Wed, 6 Nov 2024 11:52:16 +0530 Subject: [PATCH] Added description for setwarnings line --- Practical/Assignment-4/IoT - Code-4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Practical/Assignment-4/IoT - Code-4.py b/Practical/Assignment-4/IoT - Code-4.py index b5df6d7..274c570 100644 --- a/Practical/Assignment-4/IoT - Code-4.py +++ b/Practical/Assignment-4/IoT - Code-4.py @@ -21,8 +21,8 @@ import dht11 import time # initialize GPIO -GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) +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.cleanup() try: