Add Python script to detect motion and output sensor indication.