How would you change this setup so that the Shallow sensor does not break but still sends important information? (Remember: We still want it to detection to happen)

How would you change this setup so that the Shallow sensor does not break but still sends important information Remember We still want it to detection to happen class=