sentence: This anti-barking collar sprays citronella into the dog's face when the microphone detects barking.
modified: fix grammar: This anti-barking collar sprays citronella into the dog's face when the microphone detected barking.