Smart safety technology switched on at deadly rail crossing