RuntimeError: Failed to add edge detection I am using a Raspberry Pi 3 for vibration sensor with the following code: