Trying to detect blink but not successful