US Patent #6966840 titled "Amusement Device That Senses Odorous Gases in a Bathroom" is why the USA is great!
From the website:
When gases from a bowel movement are detected, audible statements are transmitted and synchronized movements are effected in the automated character."
Once activated, a humorous audible message is broadcast. The massage may say "What a stench! Somebody open the window! There are rules against cruelty to animals!" A countless number of messages can be used. The messages can be simple and benign or can be highly X-rated.