Water butt level measurement advice?

The hinge of the access cover is at the apex (see attached). Depending on the size of the sensor (or integral device) there would be a risk that it would be hit by the access cover when opened. Might be possible to add a buffer around it for protection. As it would be off centre some packing would be required to ensure it was vertical. Suitable job for a 3D printer?