Determining sugar content of liqueurs
What you need is a refractometer, also known as a Brix meter. They can be quite inexpensive. Brix is essentially sucrose in baker's percentages, so 1 gram of sugar in 100 grams of water is 1 brix. You just need to choose a model that measures in the range you are interested in. Here are some on Amazon.