Factor out registering weight sensor