From 73c967ed31004a69e9ad40e239e6fce92ddc6086 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Mon, 7 Oct 2024 01:41:22 +0530 Subject: [PATCH] fixed DPIN variable --- temp-calc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/temp-calc.py b/temp-calc.py index cabddd5..cfa3a4d 100755 --- a/temp-calc.py +++ b/temp-calc.py @@ -1,6 +1,6 @@ # Specify the pin you'll be connecting the data/signal PIN of DHT11 to here: PIN = 16 -DPIN = "D" + PIN +DPIN = "D" + str(PIN) import time from board import PIN # By default I'm using GPIO PIN 16