Smart motion sensors for highly productive cobots