@cjd A worthy endeavor.
How about LIDAR, machine learning, or AI?
A camera inside the assembly that detects anything that differs from the expected state of things.
A tiny internal patrolman.
With the state of robotics these days, it shouldn't be too difficult.
I draw, code, and make memes sometimes.