I actually wondered about this. Could any of the various "VOC Sensors" that you can get from sparkfun/adafruit etc actually be used to detect the smell?
We have an Arlo baby monitor with a VOC sensor and I'd say the probability of detection is ~80% but the false alarm rate is ~50%
I can say from personal experience that they can detect farts, but only really stinky ones.