It seems to me that this would cause more accidents what would be better is a warning light of
some kind.
Also a brake pedal over travel switch would not be sufficient it would only detect if there were air in the hydraulic lines. In most brake systems brakes adjust automaticly to brake pad...