sweenig

Under Bed Motion Detector controlled LED strip

Sep 8th, 2017
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from gpiozero import MotionSensor, LED
  2. from signal import pause
  3. pir = MotionSensor(14)
  4. relay = LED(6)
  5. relay.source = pir.values
  6. pause()
RAW Paste Data