Elevators can just weight people to do that. They already do weight them and if the total weight exceeds safety threshold they don t operate.
That's better than nothing but it would fail to account for situations where someone is moving large lightweight items that take up tons of floor capacity.