Sydney tunnel water screen stop sign for oversized vehicles [video]
That's a cute high-tech solution. A simpler one is to put a horizontal bar, the same height as the tunnel's ceiling, which will physically stop the truck before causing millions worth of damages. It's often done in France, sometimes with an early warning: a first arch with chains hanging to the maximal height. It makes a lot of noise on the truck's top, but won't destroy it.