What device can be used to measure electric charge? What is the principle of this device?

Electrometer.
When a charged body touches the rod of the electrometer, part of the electric charges are transferred from the body to the rod of the electrometer and to the arrow. The charges of the same name on the arrow and the rod are repelled, the arrow deflects. The larger the charge, the stronger the arrow deflects.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.