How can we define kilograms and grams in arduino?

This is another link of my one of the problem
please solve it