Init server file and add sensor to retrieve weight