Changing alarm trigger to RISING_EDGE