My impression is there is a sensor to accomplish this already.
Source: Just supposition, but I was on a completely full flight (on an Embraer 175) last week and they held us on the tarmac while ground crews drove a 200lb ballast weight to us which was placed in the forward cargo area. To decide this was an issue after having pulled away from the gate implies to me that the issue was raised by instruments on the plane.