Assignment 5 1
Assignment 5 1
Solution
# Connecting Pin-2 of DHT Sensor to Pin 17 of Raspberry Pi.
# Connecting Input/Signal Pin of RELAY to Pin 13 of Raspberry Pi.
GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
GPIO.setup(13,GPIO.OUT)
# Set the RELAY Pin high when the temperature reaches Threshold value 30 Degree Centigrade