Refactoring microphone sensor