- IR spectroscopy is one of several methods used together to determine the structure of a molecule. It's certainly not definitive by itself.
- Some functional groups in molecules will give very specific signals (1700 cm^-1 for carbonyl functional groups, C=O), but for a lot of other functional groups, you get very weak signals that can sometimes be hard to distinguish
- IR works pretty good for pure compounds, but when you start to measure mixtures, the overlapping signals can get very difficult to isolate and identify
- As rjdagost mentioned, taking a sensor out of the lab will lead to all sorts of issues. Any stray light will likely cause any readings to look like garbage
I could see this technology being useful to identify different types of plastic. You have a limited universe of possible materials along with some pretty specific functional groups that are either there or not.
To use it as a "molecule sensor for all", seems a big problem to try and tackle.
And how the hell does it determine the ripeness of a avocado through the skin?