Stall Warnings
We all (presumably) know about stick shakers and audible stall warnings that tell when a stall has or is about to occur but what I am confused about is how a stall or potential stall is actually detected.
Is the actual physical stall somehow detected by sensors reading air pressures etc, or does some particularly complicated bit of computer wizardry determine that the aircraft should be stalling "about now" given it's airspeed, configuration and external climatic conditions?