Need a unique gift idea?
A Pastebin account makes a great Christmas gift

Under Bed Motion Detector controlled LED strip

sweenig Sep 8th, 2017 72 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand