Smart tunnel