Pitch detection with arduino Due