pin for edge detection changde