Skip to main content

PIR Sensor

Back to article list

Sample Code

Hardware Connection: Connect the Miniature Switch to the Digital1 port of the MATRIX Mini R4.

Result: The sound will be played on motion and will be turned off after no motion.