Perhaps we should try a bale of straw next.
The London Blackwall tunnel has a more modern take on checking height: https://maps.app.goo.gl/b5P5Td1hsuSjLU3w8 traffic signals, barriers like at a railroad crossing, giant panels across the road at height, and a police car on standby to pull out and fine anyone that doesn't read the signs - I presume this happens often enough that they can justify the cost.
But then the bale of straw applied to ships not vehicles and bridges not tunnels.