Imagine being able to just look at a food and know how many calories or how much fat or carbs it has? If DietSensor does what the company claims, it could possibly be the next best thing.

The app works with a handheld spectrometer called Scio, which was developed by Israeli company Consumer Physics. When you point Scio at the food you’re about to eat, the device uses infrared light to detect the vibrations of the molecules on the surface of the food. The molecules of different nutrients, such as protein and fat, vibrate in different ways.

The app takes the data and calculates the nutritional composition of the food and sends it to your smartphone in a few seconds. Based on the information you enter about your health issues and goals, the app gives you feedback on how that food fits into your overall healthy eating plan. DietSensor stores all the data so you can keep track of your diet.

DietSensor is pretty impressive, though we couldn’t determine its accuracy since we didn’t have independent nutritional information to compare the results to. The company says that DietSensor is accurate to +/-20 percent for any nutrient. That’s the same deviation that’s permitted on the Nutrition Facts label on foods.

DietSensor was developed by French couple Remy and Astrid Bonnasse after their daughter was diagnosed with type 1 diabetes. “There were apps that had the data we needed to track her diet, but using them and collecting the information was inconvenient and tedious,” says Remy Bonnasse.

There are a few drawbacks. To accurately calculate the nutrition, the app needs to know how much the portion you’re eating weighs, so you need to use it with a food scale. That may be OK at home, but it’s not so handy at a restaurant. Remy Bonnasse says they’re working on developing a pocket-size Bluetooth scale. And DietSensor can be used only with homogeneous foods, so while you can get the information on bread, sliced turkey, and cheese individually, you can’t get it for a composed sandwich.

DietSensor, which was one of the CES 2016 Innovation Award honorees, is expected to go on sale later this year. The Scio device will retail for $249 and you’ll also pay a monthly $10 to $20 fee to use it with the app.