//일시 : 2018.01.10 13:00 ~내용 : PIR Sensor// PIR(Passive Infrared) sensor물체에서 방출되거나 반사되는 적외선 파장의 움직임에 반응하는 센서24번 핀을 input으로 설정하여 주기적으로 검사 실습단순 움직임 감지 - 움직임을 감지하면 감지된 횟수를 출력 import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) pir = 24 GPIO.setup(pir, GPIO.IN) def loop(): cnt = 0 while True: cur_stat = GPIO.input(pir) if cur_stat == 1: cnt += 1 print("%d번 감지됨" % cnt) try : loop() except..