Spring-loaded magnetic connectors showing secure connection and industrial applications