The balance is connected to a Raspberry Pi 4 through a RS-232 port and USB adapter, while the communication is handled with the pyserial library and functions to read measurements, tare and calibrate. The communication between the main computer and the Raspberry Pi takes place through socket connection, so it is possible to send commands and receive measurements.