Clue: Somewhat dotty detective? (5)
Answer: MORSE
Explanation: Definition: detective
This time 'somewhat dotty' suggests that dashes might be included, for the punning reference to the code.