Design of an innovative proximity detection embedded-system for safety application in industrial machinery