[AMENDED topic] Detecting an Emergency Stop on Arduino

Lets define an emergency stop as opposed to an error condition. An "emergency" stop is when someone removes a safety cover and has their arm caught in a chain driven gear. An error condition is when the machine is filling cans with tomatoes and the cans jam and the tomatoes are spilling on the floor.

Which condition are you attempting to cover? If it is really an emergency, then the advice to stop all power immediately is the correct answer.

Paul