Protection from stalling motor

I think the Microchip website has some useful app notes about this sort of thing - it is a common technique for electric window blockage sensing.