The key to achieving the right consistency is to accurately measure your ingredients and follow the cooking instructions carefully. Use a candy thermometer to ensure your syrup reaches the right temperature.