Setup and use an HC-SR501 PIR with Raspberry PI to execute custom Python code on motion detection. Tutorial including wiring and code