Experiments On IOT
Experiments On IOT
Aim: To interface the passive infrared (PIR) Sensor to the Raspberry Pi board.
Material Required:
• PIR sensor is used for detecting infrared heat radiations. This makes them useful in
the detection of moving living objects that emit infrared heat radiations.
• The output (in terms of voltage) of the PIR sensor is high when it senses motion;
whereas it is low when there is no motion (stationary object or no object).
• PIR sensors are used in many applications like room light control using human
detection, human motion detection for security purposes at home, etc.
import time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
while True:
i=GPIO.input(11)
time.sleep(0.1)
time.sleep(0.1)
OUTPUT:
Result