Arduino sketch dims lights and detects motion with I2C L298 H-bridge & PIR AM612M