What is the scientific principle involved in unmanned level crossing?

You can start with this link:

(Broken Link Removed)